Skip to main content
added 98 characters in body
Source Link

Just directly call.

<span ng-repeat="record in records">
      name: {{record.models.name}}
      Adress: {{record.Address1}}
      City: {{record.City}}
</span>

also in angular script

$scope.records = $scope.personDetails.myrecords;

use name: 'Mat' instead "name": "Mat" for all labels in your persondetails object.

or you need convert your json file to javascript object. angular.toJson(obj);

Just directly call.

<span ng-repeat="record in records">
      name: {{record.models.name}}
      Adress: {{record.Address1}}
      City: {{record.City}}
</span>

also in angular script

$scope.records = $scope.personDetails.myrecords;

use name: 'Mat' instead "name": "Mat" in your persondetails object.

Just directly call.

<span ng-repeat="record in records">
      name: {{record.models.name}}
      Adress: {{record.Address1}}
      City: {{record.City}}
</span>

also in angular script

$scope.records = $scope.personDetails.myrecords;

use name: 'Mat' instead "name": "Mat" for all labels in your persondetails object.

or you need convert your json file to javascript object. angular.toJson(obj);

deleted 130 characters in body
Source Link

Just directly call.

<span ng-repeat="record in records">
    <span ng-switch='key'>
        <span ng-switch-when='models'> name: {{record.models.name}}</span>
        <span ng-switch-default>
           Adress: {{record.Address1}}
           City: {{record.City}}
        </span>               
    </span>
</span>

also in angular script

$scope.records = $scope.personDetails.myrecords;

use name: 'Mat' instead "name": "Mat" in your persondetails object.

Just directly call.

<span ng-repeat="record in records">
    <span ng-switch='key'>
        <span ng-switch-when='models'> name: {{record.models.name}}</span>
        <span ng-switch-default>
            {{record.Address1}}
            {{record.City}}
        </span>               
    </span>
</span>

also in angular script

$scope.records = $scope.personDetails.myrecords;

Just directly call.

<span ng-repeat="record in records">
      name: {{record.models.name}}
      Adress: {{record.Address1}}
      City: {{record.City}}
</span>

also in angular script

$scope.records = $scope.personDetails.myrecords;

use name: 'Mat' instead "name": "Mat" in your persondetails object.

Source Link

Just directly call.

<span ng-repeat="record in records">
    <span ng-switch='key'>
        <span ng-switch-when='models'> name: {{record.models.name}}</span>
        <span ng-switch-default>
            {{record.Address1}}
            {{record.City}}
        </span>               
    </span>
</span>

also in angular script

$scope.records = $scope.personDetails.myrecords;