Angular.js: value() not injected in config()
Posted
by
Nik
on Stack Overflow
See other posts from Stack Overflow
or by Nik
Published on 2012-10-23T16:58:03Z
Indexed on
2012/10/23
17:00 UTC
Read the original article
Hit count: 161
angularjs
I am having trouble getting the value() injected into the app.config(). Here's the code (coffeescript)
window.app = angular.module("app", [])
app.value("template_path", "assets/angular/templates/users")
app.config(["$routeProvider","template_path" ($routeProvider, template_path) ->
console.log template_path
it is throwing an "Unknown provider: template_path from app" error
Could it be that the config() method cannot be injected with value() set values? I am using 1.0.2
Thank you!
© Stack Overflow or respective owner