How can I include css or javascript files in a partial view of an angularjs app ...?

I am new to angularjs, my application has a lot of partial views. I am unable to include the javascript of the css files in my partial view when I try to load the partial view on the master page.

I cant include css files for dashview.html

, can anyone help me figure out this issue.

routerApp.config(function($stateProvider, $urlRouterProvider) {

    $urlRouterProvider.otherwise('/home');

    $stateProvider      
        .state('home', {
            url: '/home',
            templateUrl: 'dashview.html'
        })         
        .state('about', {
             url: '/about',
             templateUrl: 'taskpage.html',
             controller: 'customersController',
             /*controller: 'customersController1'*/ 
        })
        .state('user', {
             url: '/user',
             templateUrl: 'editors.html',
             controller: 'customersController1'
        })
        .state('adduser', {
            url: '/adduser',
            templateUrl: 'postuser1.html',
            controller:'UserController'
        });

});

      

+3


source to share


1 answer


if you can copy the script and style codes directly to the partial parts without them in separate .js and .css files and include them
it might work



0


source







All Articles