4 AngularJS : build angularjs from scratch with php --routing

preview_player
Показать описание
AngularJS step by step
Routing in angularjs
angularjs routing
How to write angularjs application from scratch.
loading partial views and routing between pages in angularjs
Рекомендации по теме
Комментарии
Автор

For the ones whose partials don't work, let me tell you: you could use angular-ui-router.js and ['ui-router'] in the module of your app instead of ngRoute. Also, the sintaxis: app.config($stateProvider, $routeProvider) { .state{controller:, templateUrl:, } .otherwise{} . Also, with this system the route is without #!/, after all, you can watch the different partials in the url with #! but you could not write them in the templateUrl of the states and work. Also use for the links ( <a ui-sref=" ">) instead of href= . And even you can use $state.go() instead of location.url();

bernab
Автор

Even my Partials are not working! Why!!

adiful
welcome to shbcf.ru