display each value of ng-repeat in individual pages

I am working on angularjs application. I have a written angular controller and a service call,the results returned is a list of values. I want to display each value while iterating in each webpage instead of showing the list of values in a single webpage as shown in the fiddle demo here

sample js code:

var app = angular.module('app', []);
app.controller('MyDataController', ['$scope', '$http', function ($scope, $http) {
    $scope.values = [1, 2,3];
    $scope.$watch('myValue', function (newValue, oldValue) {
        if (newValue !== oldValue) {
             return $http.get('../myUrl/'+newValue+'/').then(function(response){
                  // $scope.values = response.data;      
                 $scope.values = [ 1, 2, 3 ];

How to display each individual value returned by ng-repeat="myData in values" in individual webpages.Any inputs?

0 Comment



Captcha image