Skip to content

Instantly share code, notes, and snippets.

@rwaltenberg
Created July 13, 2016 12:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rwaltenberg/b4927feee75529742f945737c7a80ac5 to your computer and use it in GitHub Desktop.
Save rwaltenberg/b4927feee75529742f945737c7a80ac5 to your computer and use it in GitHub Desktop.
Cria uma constante no AngularJS
// 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