Closed ivan-shaban closed 9 years ago
@LordXaoca how about a pull request? Adding this to unit test and updating README.md would be great.
@marcoslin sorry, i'm newbee with js yet, so i don't think that i could write good tests for now(( mb in near future
Also i'm check value type with array, is it really neccessary? Is it possible that value could be anything else then string, function or array?
@LordXaoca in the example you provided, and based on your sample code, you need to pass a 'controller' parameter inside the angularAMD.route
call. How would you name your controller in this case?
Really i don't need it, i use route without controller syntax and all works fine, mb i miss anything?
I add more explicit example to first message.
I was going to suggest inline controller but wasn't sure of your exact implementation. It seems that you have found a solution for you already. Closing the issue.
Hi,
I can you solve this probem? I have the same "issue"...
Thanks, Riccardo
Hi, i have next route configuration:
app.js:
custom-controller.js
Seems like angularAMD doesn't support controllerUrl as function and as result i can't define controllers dynamical.
I found a little workaround but probably code not the best,
AngularAMD.prototype.route
:Can you improve it and implement into library?