forked from scotch/angular-brunch-seed
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d071060
commit e3eab6c
Showing
6 changed files
with
26 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,12 @@ | ||
# Declare app level module which depends on filters, and services | ||
App = angular.module \app, <[ ngCookies ngResource app.controllers app.directives app.filters app.services ]> | ||
App = angular.module \app <[ngCookies ngResource app.controllers app.directives app.filters app.services]> | ||
|
||
App.config [ '$routeProvider' '$locationProvider' | ||
($routeProvider, $locationProvider, config) -> | ||
App.config <[$routeProvider $locationProvider]> +++ ($routeProvider, $locationProvider, config) -> | ||
$routeProvider | ||
.when \/view1, templateUrl: \/partials/app/partial1.html | ||
.when \/view2, templateUrl: \/partials/app/partial2.html | ||
.when \/view1 templateUrl: \/partials/app/partial1.html | ||
.when \/view2 templateUrl: \/partials/app/partial2.html | ||
# Catch all | ||
.otherwise redirectTo: \/view1 | ||
|
||
# Without serve side support html5 must be disabled. | ||
$locationProvider.html5Mode false | ||
] | ||
$locationProvider.html5Mode false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
# Services | ||
|
||
# Create an object to hold the module. | ||
mod = {} | ||
mod = version: = -> "0.1" | ||
|
||
mod.version = -> "0.1" | ||
|
||
angular.module('app.services', []).factory(mod) | ||
angular.module 'app.services' [] .factory mod |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
|
||
angular.element(document).ready -> | ||
angular.bootstrap(document, [\app]) | ||
angular.element document .ready -> | ||
angular.bootstrap document, <[app]> |