Integrate new menu for admin

242 views Asked by At

I work on a project jhipster

I have had a blockage is part of angularjs, I would like to integrate a menu in the admin profile so I modified scripts/app/admin.js but nothing happens.

'use strict';

angular.module('pmappApp').config(function($stateProvider) {
    $stateProvider.state('admin', {
        'abstract' : true,
        parent : 'site',
        views : {
            'gmenu@' : {
                templateUrl : 'scripts/app/admin/gmenu/gmenu.html',
                controller : 'GmenuController'
            }
        }
    });
});
1

There are 1 answers

1
Icycool On

By using

$stateProvider.state('admin', {
    'abstract' : true,
    parent : 'site',
    views : {
        'gmenu@' : {
            templateUrl : 'scripts/app/admin/gmenu/gmenu.html',
            controller : 'GmenuController'
        }
    }
});

I can see the additional menu are properly inserted while accessing /audits