0

I have created a simple angularjs app with component and view When I include directly component in index.html everything works fine but as my app requires multiple view, I am shifting to view but my view when loaded does not get affected by css and js

This question may seem to be duplicate of this but I tried this solution but did not work

Index.html img link

App.js

'use strict';

angular.module('myApp', [
'ngRoute',
'myApp.view1',
'myApp.view2',
'sidebar',
'topnavbar',
])

view1.module

'use strict';

angular.module('myApp.view1',
['ngRoute',
'knob',
'slider',
'select2',
'rangeslider',
'pickers',
'inputswitcher',
'cropper',
'btscheckbox']);

View1.template

<div class="wrapper wrapper-content animated fadeInRight">
<div class="row">
    <knob></knob>
    <slider></slider>
    </div>
    <div class="row">
        <select2></select2>
    </div>
    <!--<div class="row">

        <rangeslider></rangeslider>
    </div>-->
    <div class="row">
        <pickers></pickers>
        <inputswitcher></inputswitcher>
    </div>
    <div class="row">
        <cropper></cropper>
    </div>
    <div class="row">

        <btscheckbox></btscheckbox>
    </div>

A part of page when component include directly to index: link here

When component loaded from view : link here

2
  • are you getting any relevant messages in browser console Commented Apr 16, 2018 at 10:18
  • No message in log Commented Apr 16, 2018 at 10:52

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.