File tree Expand file tree Collapse file tree 4 files changed +17
-18
lines changed Expand file tree Collapse file tree 4 files changed +17
-18
lines changed Original file line number Diff line number Diff line change 1
1
export function RoutesConfig ( $stateProvider , $urlRouterProvider ) {
2
+ 'ngInject' ;
2
3
3
4
var getView = function ( viewName ) {
4
- return './views/app/' + viewName + '/' + viewName + '.html' ;
5
+ return './views/app/pages/ ' + viewName + '/' + viewName + '.html' ;
5
6
} ;
6
7
7
8
$urlRouterProvider . otherwise ( '/' ) ;
Original file line number Diff line number Diff line change 1
- ( function ( ) {
2
- "use strict" ;
3
-
4
- angular . module ( 'app.config' ) . config ( function ( cfpLoadingBarProvider ) {
5
- cfpLoadingBarProvider . includeSpinner = false ;
6
- } ) ;
7
-
8
- } ) ( ) ;
1
+ export function LoadingBar ( cfpLoadingBarProvider ) {
2
+ 'ngInject' ;
3
+ cfpLoadingBarProvider . includeSpinner = false ;
4
+ }
Original file line number Diff line number Diff line change 1
- ( function ( ) {
2
- "use strict" ;
3
-
4
- angular . module ( 'app.config' ) . config ( function ( $mdThemingProvider ) {
5
- /* For more info, visit https://material.angularjs.org/#/Theming/01_introduction */
6
- $mdThemingProvider . theme ( 'default' )
1
+ export function ThemeConfig ( $mdThemingProvider ) {
2
+ 'ngInject' ;
3
+ /* For more info, visit https://material.angularjs.org/#/Theming/01_introduction */
4
+ $mdThemingProvider . theme ( 'default' )
7
5
. primaryPalette ( 'indigo' )
8
6
. accentPalette ( 'grey' )
9
7
. warnPalette ( 'red' ) ;
10
- } ) ;
11
-
12
- } ) ( ) ;
8
+ }
Original file line number Diff line number Diff line change
1
+ import { LoadingBar } from './config/loading_bar.config' ;
2
+ import { ThemeConfig } from './config/theme.config' ;
3
+
4
+ angular . module ( 'app.config' )
5
+ . config ( LoadingBar )
6
+ . config ( ThemeConfig ) ;
You can’t perform that action at this time.
0 commit comments