I am trying to trigger the controller for this URL http://crm.dev/accounts
, I'm just using an anonymous function in this example for the controller, but the inside warning is not triggered. I do not understand that, I think that's something stupid?
I do not want to use a template or scene, I should have removed my controller.
Please note that I already have $ locationProvider.html5Mode (true);
.
has set a 'strict experiment'; Angular Modules ('CRM', ['NGSNititis', 'NGRUTA', 'Conularmoment', 'UI.bootstrap', 'UI Seal', 'UI.bootstrapdatemapixer']); Angular Module ('CRM') Config (function (uiSelectConfig) {uiSelectConfig.theme = 'bootstrap';}); Angular Module ('CRM') Stable ('angular silence confing', {preprocess: 'UTC', timezone: 'Europe / Berlin'}); Enable html5Mode ('/ accounts', {controller: function ($ scope)} {{' $ routeProvider ',' $ locationProvider ', function ($ route provider, $ location provider) {$ routeProvider.PushState (' # '- less URL) $ locationProvider.html5Mode (true); $ locationProvider.hashPrefix ('! ');}]);
you
& lt; Ng-view & gt; & Lt; / Ng-view & gt;
In your main template, otherwise the routing system will not work
No comments:
Post a Comment