-
Notifications
You must be signed in to change notification settings - Fork 43
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
Play221 Update #7
Conversation
…gular dependency as this is now fixed in angular.js webjar
I updated angular.js/require.js as the dependecy bug is now fixed. |
@@ -8,12 +8,13 @@ define('angular', ['webjars!angular-locale_en-us.js'], function() { | |||
return angular; | |||
}); | |||
|
|||
require(['angular', './controllers', './directives', './filters', './services'], | |||
|
|||
require(['angular', './controllers', './directives', './filters', './services', 'webjars!angular-route.js'], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @huntc, how does just angular
work? I thought the webjars!
prefix was needed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is defined above:
I've found it good practice to do this in order to:
- not have webjars! throughout my code (and thus keep it portable); and
- have the module return something that makes sense rather than rely on globals throughout my code.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool. Thanks.
LGTM. @huntc? |
@@ -0,0 +1,14 @@ | |||
name := "angularjs_sample" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we please keep the name as "angular-seed-play"?
@nob13 Can you please squash your commits? |
I added a new pull request with squashed content. |
Contains a workaround to add dependency to angular.routes.