Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .config(['$routeProvider', '$locationProvider',
- function($routeProvider, $locationProvider) {
- $routeProvider.
- when('/', {
- templateUrl: "index.html"
- }).
- when('/profile/:id', {
- templateUrl: "profile.html",
- controller: 'UsersController as profiledUser'
- }).
- when('/gift/:id', {
- templateUrl: "gift.html",
- controller: 'GiftsController as profiledGift'
- }).
- when('/users-form', {
- templateUrl: "users-form.html",
- controller: 'UsersController as newUser'
- }).
- when('/login-form', {
- templateUrl: "login-form.html",
- controller: 'UsersController as loginUser'
- }).
- when('/gifts-form', {
- templateUrl: "gift-form.html",
- controller: 'GiftsController as newGift'
- }).
- when('/about', {
- templateUrl: "about.html"
- }).
- otherwise({
- redirectTo: '/'
- });
- <a href="#profile/5" data-ng-click="template=1" style="color: white;">Profile</a>
- <li><a href="#profile/{{id}}" data-ng-click="template=1" style="color: white;">Profile</a></li>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement