-
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
Changes from 5 commits
8916cee
15e86e9
7abdb30
9534430
87fc0a6
76aebde
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
name := "angularjs_sample" | ||
|
||
version := "1.0-SNAPSHOT" | ||
|
||
libraryDependencies ++= Seq( | ||
jdbc, | ||
anorm, | ||
cache, | ||
"org.webjars" %% "webjars-play" % "2.2.1", | ||
"org.webjars" % "angularjs" % "1.2.9", | ||
"org.webjars" % "requirejs" % "2.1.10" | ||
) | ||
|
||
play.Project.playScalaSettings |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
sbt.version=0.12.4 | ||
sbt.version=0.13.0 |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 commentThe reason will be displayed to describe this comment to others. Learn more. Hey @huntc, how does just There was a problem hiding this comment. Choose a reason for hiding this commentThe 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:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Cool. Thanks. |
||
function(angular, controllers) { | ||
|
||
// Declare app level module which depends on filters, and services | ||
|
||
angular.module('myApp', ['myApp.filters', 'myApp.services', 'myApp.directives']). | ||
angular.module('myApp', ['myApp.filters', 'myApp.services', 'myApp.directives', 'ngRoute']). | ||
config(['$routeProvider', function($routeProvider) { | ||
$routeProvider.when('/view1', {templateUrl: 'partials/partial1.html', controller: controllers.MyCtrl1}); | ||
$routeProvider.when('/view2', {templateUrl: 'partials/partial2.html', controller: controllers.MyCtrl2}); | ||
|
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"?