From: Gustavo Martin Morcuende Date: Sun, 16 Aug 2015 20:48:51 +0000 (+0200) Subject: showcase: ng-app vs angular.bootstrap, in my case using ng-app X-Git-Url: https://git.gumartinm.name/?a=commitdiff_plain;h=5f06db2f4da7610d25f22bc3603ce0727325ab9a;p=JavaScriptForFun showcase: ng-app vs angular.bootstrap, in my case using ng-app --- diff --git a/angularjs/showcase/app/app.config.js b/angularjs/showcase/app/app.config.js index bc41983..b86a7f0 100644 --- a/angularjs/showcase/app/app.config.js +++ b/angularjs/showcase/app/app.config.js @@ -9,12 +9,13 @@ function($stateProvider, $urlRouterProvider) { var welcome = { + abstract: false, url: '/welcome', templateUrl: 'app/welcome/welcome.html' }; - $urlRouterProvider.otherwise('app/welcome'); - $stateProvider.state('app.welcome', welcome); + $urlRouterProvider.otherwise('welcome'); + $stateProvider.state('welcome', welcome); } ]); }()); \ No newline at end of file diff --git a/angularjs/showcase/app/app.module.js b/angularjs/showcase/app/app.module.js index 678ef64..cc245ef 100644 --- a/angularjs/showcase/app/app.module.js +++ b/angularjs/showcase/app/app.module.js @@ -7,4 +7,5 @@ 'ui.bootstrap', 'ui.bootstrap.modal' ]); + }()); \ No newline at end of file diff --git a/angularjs/showcase/app/index.html b/angularjs/showcase/app/index.html index 7a6a354..b684204 100644 --- a/angularjs/showcase/app/index.html +++ b/angularjs/showcase/app/index.html @@ -46,19 +46,6 @@ - - @@ -70,10 +57,42 @@ -
+ +
+
+ + Hello World!!! You should never see this if ui-router works as expected. + +
+ +