Created
November 27, 2015 08:37
-
-
Save ratul0/b3908fa84dbe7427fdd7 to your computer and use it in GitHub Desktop.
Angular Services Example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $provide.provider('books', function () { | |
| this.$get = function(){ | |
| var appName = "Book Looger"; | |
| return { | |
| appName: appName | |
| }; | |
| } | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment