Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
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