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
Post a Comment