-
Notifications
You must be signed in to change notification settings - Fork 42
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
Support for ui-router resolve, onEnter and onExit #54
Comments
+1 |
3 similar comments
+1 |
+1 |
+1 |
+1 Took me awhile to figure out that this was where my minified code was going bust. Does anyone have any stop-gap solution for converting the standard form of these functions, i.e.
To a minification safe form? Apologies if this is a noob type question! D. |
@dylan-baskind : in our project, we're using
|
@forgetaboutit - Cheers for that! Familiar syntax from the controller declarations, just didn't realise it would also apply here. Thanks for the tip. |
+1 |
8 similar comments
+1 |
+1 |
+1 |
+1 |
+1 |
+1 |
+1 |
+1 |
I think #61 will make this easier, so I'll work on getting this in ASAP. :) |
+1 |
+1 |
5 similar comments
+1 |
+1 |
+1 |
👍 |
+1 |
+1 :) |
+1 |
1 similar comment
+1 |
Hi guys, if you need this feature I would recommend to try ng-annotate, which supports this in its new bleeding edge version (see here for examples). // cc @olov |
+1 :) |
and up again 👍 |
…ngmin#89, btford/ngmin#87, btford/ngmin#85, btford/ngmin#78, btford/ngmin#77, btford/ngmin#73, btford/ngmin#70, btford/ngmin#64, btford/ngmin#63, btford/ngmin#61, btford/ngmin#59, btford/ngmin#57, btford/ngmin#56, btford/ngmin#54, btford/ngmin#50, btford/ngmin#46, btford/ngmin#43, btford/ngmin#42, btford/ngmin#37, btford/ngmin#35, btford/ngmin#22
Changes that any fixes for this are merged some day? i.e. I just hit trouble with ngmin and "ui-router" "resolve"s. |
Seriously, check ng-annotate. Here is a comparison between ng-annotate and ngmin. |
Q: does it have rails assets pipeline integration? |
@donaldpipowitch That link shows which 24 open ngmin issues that just work in ng-annotate. In addition, there are 6 open ngmin issues that work in ng-annotate with a workaround. See full annotated issue list. But Instead of just looking at that list I recommend reading the more elaborate comparison I wrote yesterday in issue #93 - The future of ngmin and ng-annotate. @kikonen-fiksu: That comparison also describes where ng-annotate is trailing ngmin, in particular not as extensive tooling integration (although Grunt, Browserify, Brunch and Gulp is there so far and more is coming). Q: "does ng-annotate have rails assets pipeline integration?" A: "not currently, but hopefully very soon". It should be a 30 minute job for a rails/ruby/gem savvy person to create it. |
Thx, I may try to take peek on this assets integ. |
@kikonen this discussion does not belong is this thread so let's take it elsewhere (email/twitter/issue). FWIW ng-annotate does not require ES6 because defs, info in BUILD.md |
First draft: https:/kikonen/ngannotate-rails |
+1 |
+1 :D |
+1 |
3 similar comments
+1 |
+1 |
+1 |
I also switched to ng-annotate about a month ago and haven't looked back. |
+1 |
Would this be a result of
|
Please try https:/olov/ng-annotate. ngmin is now deprecated: #93 If your issue isn't resolved there please open an issue at https:/olov/ng-annotate/issues If you really want ngmin to fix this issue, feel free to fork it and use that. |
Among other, this gives annotation support for ui-router, more info: - btford/ngmin#54 - https:/olov/ng-annotate
Since ui-router of the angular-ui project is quickly becoming the de-facto replacement of Angular's routeProvider, it would be good to have full support for it. This means that the 'resolve', 'onEnter' and 'onExit' properties in $stateProvider.state() should be handled by ngmin.
@see https:/angular-ui/ui-router/wiki#onenter-and-onexit-callbacks
The text was updated successfully, but these errors were encountered: