Created
July 13, 2016 12:54
-
-
Save rwaltenberg/b4927feee75529742f945737c7a80ac5 to your computer and use it in GitHub Desktop.
Cria uma constante no AngularJS
This file contains 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
// Cria uma constante chamada configLocal no AngularJS. | |
// Depois ela pode ser injetada como dependência dentro | |
// do projeto. | |
angular | |
.module("nomeDoApp") | |
.constant("configLocal", { | |
"db": "http://localhost", | |
"port": "80", | |
... | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment