Skip to content

Commit 511bc7f

Browse files
committed
updated Readme
1 parent b1b8c15 commit 511bc7f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ bind your localStorage value to a $scope variable which will be updated whenever
1414
If you are unsure on how to use it read this:
1515

1616
1. 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'] `
2020
3. Now inside your controllers simply pass the $store like this
2121
`yourApp.controller('yourController',function( $scope, $store){`
2222
4. Using the $store factory

0 commit comments

Comments
 (0)