Skip to content

Instantly share code, notes, and snippets.

@Shu-Ji
Created July 7, 2015 07:31
Show Gist options
  • Save Shu-Ji/25bb374879a0e30b83fd to your computer and use it in GitHub Desktop.
Save Shu-Ji/25bb374879a0e30b83fd to your computer and use it in GitHub Desktop.
Run = ['$rootScope', '$localStorage', ($rootScope, $ls) ->
$rootScope.$ls = $ls
]
window.bootstrap_angular = ->
default_dependencies = ['ngStorage']
app_dependencies = default_dependencies
for dependency in arguments
app_dependencies.push dependency
console.log 'dependencies: ', app_dependencies
angular
.module 'app', app_dependencies
.run Run
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment