javascript - Limiting $scope in AngularJS -


i have multi-page angularjs web application serves analytics dashboard. using $scope create variables can display of data dynamically on html pages. instead of creating $scope variables global no matter page user visiting limit variables page , page only. since new angular have no idea how this. ideas on can do?

$scope variables aren't global; specific controller. if want variables specific each page, put controller on each page (and don't add controller parent element since scope inherited).


Comments

Popular posts from this blog

javascript - How to update a get parameter in a url with jquery -

c - Run time Error with scanf -

amazon web services - How to determine the state of an AWS instance -