lib/ngapp/tpl.helper.js
function addInitModel(scope, initialModel, pageName) {
        angular.extend(scope, initialModel);

        if (scope.pageHead && scope.pageHead.title) {
            var title = scope.pageHead.title;
            pageSettings.updateHead(title, scope.pageHead.description ||  title);
            pageSettings.updatePageStyle(pageName);
        }
    }
function addInitModel(scope, initialModel, pageName) {
        angular.extend(scope, initialModel);

        if (scope.pageHead && scope.pageHead.title) {
            var title = scope.pageHead.title;
            pageSettings.updateHead(title, scope.pageHead.description ||  title);
            pageSettings.updatePageStyle(pageName);
        }
    }
function addInitModel ( scope , initialModel , pageName ) { angular . extend ( scope , initialModel ) ; if ( scope . pageHead && scope . pageHead . title ) { var title = scope . pageHead . title ; pageSettings . updateHead ( title , scope . pageHead . description || title ) ; pageSettings . updatePageStyle ( pageName ) ; } }
Add the initial model to the scope and set the page title, desc, etc.
@param scope
@param initialModel
@param pageName
Add the initial model to the scope and set the page title desc etc .