File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,9 +14,9 @@ bind your localStorage value to a $scope variable which will be updated whenever
1414If you are unsure on how to use it read this:
1515
16161 . Your application most likely has a line where you set it as a variable containing your module
17- ` var yourApp = angular.module('yourApp',... `
18- 2 . Using this same variable attach the factory i've provided as a stand alone file like this
19- ` yourApp.factory("$store",function(){ `
17+ ` var yourApp = angular.module('yourApp', [ ...] `
18+ 2 . Just add this module to your app as a dependency
19+ ` var yourApp = angular.module('yourApp', [..., 'localStorage'] `
20203 . Now inside your controllers simply pass the $store like this
2121` yourApp.controller('yourController',function( $scope, $store){ `
22224 . Using the $store factory
You can’t perform that action at this time.
0 commit comments