Check out this live code example on JSbin
Can you show only the key
from expression syntax in Angular? Specifically, the key being the word "page". And is it possible to do this from an array (even though they are the same word)?
HTML
<body ng-app="ang6App">
<div class="container" ng-controller="templatesCtrl">
<div ng-repeat="(key, val) in tempTemp">{{val}}</div>
<!-- How can I display just the word page? -->
</div>
</body>
JS
angular.module("ang6App")
.controller("MainCtrl", function ($scope) {})
.controller("templatesCtrl", function ($scope) {
/* $scope.template = Templates; */
$scope.tempTemp = [{
'page': {
'name': 'jordan test page'
}
},
//end of page
{
'page': {
'name': 'jordan test page'
}
}];
//end of templates
});