Home How delete navbar in SQL server and angularJS
Reply: 0

How delete navbar in SQL server and angularJS

user2448
1#
user2448 Published in August 15, 2018, 5:37 am

I develop an application with asp.net and angularJS, in my application there is a menu(navbar) that separates (dashboard, profile, agenda), each word of these 3 contains table in the database of course. Also, in my database, there is a menu table (id, link, libelle), I want when I go to the given database and I delete for example dhaboard, the word dashboad automatically deletes from menu and its content also does not display, now if I delete dashboard, the word dashboard removes from the menu but its content remains displayed

config.js:

  function config($stateProvider, $urlRouterProvider,roles) {
    $urlRouterProvider.otherwise("/login");

    $stateProvider


        .state('dashboard', {
            url: "/Dashboard",
            controller:'dashbordCtrl',
            templateUrl: "views/dashbord/dashbordView.html",

            data: { pageTitle: 'Dashboard' },
            resolve: {
                loadPlugin: function ($ocLazyLoad) {
                    return $ocLazyLoad.load([
                        'views/dashbord/dashbordCtrl.js',
                        'sweet_alert',
                        'datatables_lazy',
                        'datePicker',
                        'chosen',
                        'lazy_chart'
                    ]);
                }
            }

        })

        .state('agenda', {
            url: "/agenda",
            controller: "candidatureCtrl",
            templateUrl: "views/agenda/agenda.html",
            data: { pageTitle: 'Agenda' },
            resolve: {
                loadPlugin: function ($ocLazyLoad) {
                    return $ocLazyLoad.load([
                        'views/candidature/candidatureCtrl.js',
                        'sweet_alert',
                        'datatables_lazy',
                        'agCtrl'
                    ]);
                }
            }
        })
        .state('Profil', {
            url: "/Profil",
            controller: "profilCtrl",
            templateUrl: "views/Profil/Profil.html",
            data: { pageTitle: 'Profil' },
            resolve: {
                loadPlugin: function ($ocLazyLoad) {
                    return $ocLazyLoad.load([
                        'views/Profil/profilCtrl.js',

                        'sweet_alert',
                        'datatables_lazy'

                    ]);
                }
            }
        })
You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.237503 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO