Click here to Skip to main content
15,903,175 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Need to Pass data from scope to HTML page data.
$scope.View = function (ID) {
        $scope.Id = ID;
        var modalInstance = $modal.open({
            templateUrl: '/Scripts/Views/Templates/PopupDetails-popup.html',
            controller: PopupController,
            scope: $scope
        });
    };

var PopupController = function ($scope, $http, $modalInstance) {
$http.get('/Test/GetTestData/' + $scope.ID)

           .success(function (data) {

               $scope.PopupDetails = data;
               $scope.PopupDetails.Summary = data.Summary;


           })


What I have tried:

in html page i was trying like below
<div class="col-md-3" style="float:left;border:groove; height:100px">
             <label ng-model="$scope.PopupDetails.Summary"></label>
         </div>
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900