SyntaxFix
Write A Post
Hire A Developer
Questions
Instead of using onload, use Angular's ng-init.
ng-init
<article id="showSelector" ng-controller="CinemaCtrl" ng-init="myFunction()">
Note: This requires that myFunction is a property of the CinemaCtrl scope.
CinemaCtrl