Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.
SOLVED

How do you customize the patch that gets requested by SPA Page Model Manager's `ModelManager.initialize()`?

Avatar

Level 1

I did see the apiHost option, but any guidance around this would be much appreciated!

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

SPA
1 Accepted Solution

Avatar

Correct answer by
Level 1

Looks like I found the answer. In case others are looking for this you can use something like this:

```

let modelClient = new ModelClient();
ModelManager.initialize({
path: [YOUR PATH HERE...],
modelClient
})

```

Note, you _dont_ want to include the host (really the entire origin) as part of that path though

View solution in original post

1 Reply

Avatar

Correct answer by
Level 1

Looks like I found the answer. In case others are looking for this you can use something like this:

```

let modelClient = new ModelClient();
ModelManager.initialize({
path: [YOUR PATH HERE...],
modelClient
})

```

Note, you _dont_ want to include the host (really the entire origin) as part of that path though