Advertisement
Guest User

Untitled

a guest
Sep 30th, 2016
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. $routeProvider.when('details/:id', {
  2.      templateUrl: 'partials/details.html',
  3.      controller: 'DetailController'
  4. });
  5.  
  6. myApp.controller('DetailController', ['$scope', '$routeParams', function($scope, $routeParams){
  7.      $scope.message = "Your ID is " + $routeParams.id;
  8. }]);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement