This might be elementary but I am treading water and cannot find a good example from Google Search.
The problem I have is I need to populate the page title to the app-template page-title parameter using {{pageTitle}} It is part of the scope but some how I need to fish out the basic nav current page (that I am on and pop that puppy here.
How do I do this?
Thanks,
Frank
....
<html ng-app="VizMe" hover-stop="" class="ng-scope">
<body ng-controller="ctrlr" class="ng-scope">
<macc-app-template
app-title="Visualize"
page-title="{{pageTitle}}" <<< How???
nav-content="nav"
class="ng-isolate-scope">
....
<script>
angular.module('VizMe', ['macc']).controller('ctrlr', ['$scope',
function($scope) {
var basicNav = [
{label:'Home',
url:'index.cfm?template=a'},
{label:'MACC Gear',
url:'index.cfm?template=b'},
{label:'Alatus',
url:'index.cfm?template=d'}, <<<< the lbael from this needs to get to a the pageTitle variable below....
{label:'Osteons',
url:'index.cfm?template=e'}
];
var noNav = [];
$scope.showNav = true;
$scope.nav = basicNav;
$scope.setNav = function(showNav) {
$scope.nav = showNav ? basicNav : noNav;
};
$scope.pageTitle = 'Need label of the current page to populate here?'; <<< How???
}]);
</script>