Skip to content
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

controllerのminifay対策 #8

Closed
sinmetal opened this issue May 24, 2013 · 1 comment
Closed

controllerのminifay対策 #8

sinmetal opened this issue May 24, 2013 · 1 comment

Comments

@sinmetal
Copy link
Owner

minifayされると、controller名が圧縮されてAngularJSから見えなくなってしまうため、以下のようにcontroller名を縛る。

こんなふうにコントローラ定義しておいて
app.controller("EntryController", ['$scope', '$location', '$resource', EntryController]);

で、コントローラの名前を文字列で指定してあげればよかった気がします。
$routeProvider.when('/entry', {controller:"EntryController", templateUrl:'entry.html'});

sinmetal added a commit that referenced this issue May 24, 2013
@sinmetal
Copy link
Owner Author

Merge

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant