Is it possible to display only the key from expression syntax in Angular? The key being the word being "page". If so can it be from an array(I know 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 do I just display 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
});