filmov
tv
Angularjs route configuration
Показать описание
angularjs route config example
angular ngroute example
angular route example
angular routeprovider example
angularjs routeprovider sample
$routeprovider angularjs
routeprovider angularjs example
angularjs routeprovider multiple when
Healthy diet is very important both for the body and mind. If you like Aarvi Kitchen recipes, please support by sharing, subscribing and liking our YouTube channel. Hope you can help.
In this video we will discuss configuring routes and creating controllers. This is continuation to Part 25. Please watch Part 25 from AngularJS tutorial.
var app = angular
.module("Demo", ["ngRoute"])
.config(function ($routeProvider) {
$routeProvider
.when("/home", {
controller: "homeController"
})
.when("/courses", {
controller: "coursesController"
})
.when("/students", {
controller: "studentsController"
})
})
.controller("homeController", function ($scope) {
})
.controller("coursesController", function ($scope) {
})
.controller("studentsController", function ($scope, $http) {
.then(function (response) {
})
})
Set ng-app="Demo" on the root html element
Next video : How to remove hash from URL
Link for all dot net and sql server video tutorial playlists
Link for slides, code samples and text version of the video
angular ngroute example
angular route example
angular routeprovider example
angularjs routeprovider sample
$routeprovider angularjs
routeprovider angularjs example
angularjs routeprovider multiple when
Healthy diet is very important both for the body and mind. If you like Aarvi Kitchen recipes, please support by sharing, subscribing and liking our YouTube channel. Hope you can help.
In this video we will discuss configuring routes and creating controllers. This is continuation to Part 25. Please watch Part 25 from AngularJS tutorial.
var app = angular
.module("Demo", ["ngRoute"])
.config(function ($routeProvider) {
$routeProvider
.when("/home", {
controller: "homeController"
})
.when("/courses", {
controller: "coursesController"
})
.when("/students", {
controller: "studentsController"
})
})
.controller("homeController", function ($scope) {
})
.controller("coursesController", function ($scope) {
})
.controller("studentsController", function ($scope, $http) {
.then(function (response) {
})
})
Set ng-app="Demo" on the root html element
Next video : How to remove hash from URL
Link for all dot net and sql server video tutorial playlists
Link for slides, code samples and text version of the video
Комментарии