I am learning AngularJS. I have some article tag and on clicking on a button each article page is showed without any page refresh. This is one page website. Wha
AngularJS
Instead of using onload, use Angular's ng-init.
ng-init
Note: This requires that myFunction is a property of the CinemaCtrl scope.
CinemaCtrl