Expand my Community achievements bar.

SOLVED

Personalization with AngularJS

Avatar

Level 6

I am trying to personalize a component present in AEM page. The page is an angular application , the angular files are hosted externally and references are included in head.html.

When i add offer to the component , the data from angular is not loading. It considers the component as a standalone html , fails to get the data from angularjs.

1 Accepted Solution

Avatar

Correct answer by
Employee

Have global variable and assign data from inside your angular controller to the global variable. This should be usable in ur component now.

View solution in original post

2 Replies

Avatar

Correct answer by
Employee

Have global variable and assign data from inside your angular controller to the global variable. This should be usable in ur component now.

Avatar

Level 3

Did this solve your problem?  I'm working on an AngularJS project and after targeting a component that contains a controller, it no longer is gets invoked when Angular runs on the page.