-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot use "config" #45
Comments
I have the same problem, my code: object Main extends JSApp {
@JSExport
override def main(): Unit = {
val module = angular.createModule("history", Seq("ngRoute"))
module.controllerOf[SearchCtrl]("SearchCtrl")
module.config( ($routeProvider:RouteProvider) =>
$routeProvider
.when("/frontend/search",
Route(templateUrl = "search.html", controller = "SearchCtrl"))
)
}
} Stack
|
Which version of angulate do you use (0.1, 0.2-SNAPSHOT, or some branch)? |
hi, jokade, I am using:
|
Ok, I can reproduce this error and will fix it soon. As a temporary workaround, just add import scalajs.js -- Johannes |
Genial, it work now, thanks. PD. how you came to that conclusion? debug compiler? |
@Miuler there are some debug flags to enable logging of the code generated by angulate at compile time |
When doing something like
I get a compiler error: "not found: value js"
Am I missing an import?
The text was updated successfully, but these errors were encountered: