Running inline script inside ion-content


#1

Is there a way to run a JavaScript script inside an ion-content?

When I put an inline script into a page inside ion-content it never gets triggered (executed).

However, if I put it in the index.html file, it does run.


#2

No, this goes against angular/MVC principles. A view should never have any scripting in it. This should be handled in a controller.


#3

google: angularjs directive :slight_smile: