SHARE
TWEET
Awais
a guest
May 25th, 2016
16
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- var app = angular.module('app', ['ngRoute']);
- app.controller('myController', function ($scope, $http, $window, $rootScope,$routeParams) {
- $scope.detailId = function (Id) {
- debugger
- $http.post('/Employees/Detail', { empid: Id })
- {
- debugger
- $window.location.href = 'Detail/' + Id;
- $rootScope.empId = Id;
- }
- }
- $rootScope.empId = "";
- $scope.detail = function (empId)
- {
- debugger
- $http.post('/Employees/GetDetail', JSON.stringify({ id: empId }))
- .success(function (result) {
- debugger
- $scope.ampdetail = result;
- })
- .error(function (result) {
- console.log(result);
- });
- }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy.
