3

I am new to angularjs, my application is having many partial views. I am not able to include css files javascript file in my partial view when i try to load partial view in main page.

I am not able to include css files for dashview.html any one help me sort out this problem.

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'
        });

});
ConcurrentHashMap
  • 4,998
  • 7
  • 44
  • 53
user3844950
  • 71
  • 1
  • 11
  • here look at this [answer](http://stackoverflow.com/questions/15193492/how-to-include-view-partial-specific-styling-in-angularjs) it might help you with adding css – Jared Reeves Sep 18 '14 at 12:09

1 Answers1

0

if you can copy the script and style codes directly inside partials without having them in separate .js and .css files and include them
it may work

Kalhan.Toress
  • 21,683
  • 8
  • 68
  • 92
  • some how i managed to include css to my partial view.. but i am not able to include jquery inside my partial view... i am using this file to include calendar in my partial view.. how can i do it...???? – user3844950 Sep 19 '14 at 09:45