javascript - scripts and stylesheets not loading while reload in angularjs SPA -


index page :

  <ng-view></ng-view> 

angular controller :

    when('/', {         url: '/',         templateurl: 'site/home',         controller: 'indexcontroller'     }).      when('/site/help', {         templateurl: 'site/help',         controller: 'indexcontroller'     }). 

help page content :

some content

the problem when navigate index page using /site/help link shows me page content menu of index page.

but when reload page shows page content without styles or javascripts loaded.

you should put ng-view tag in index.html, because page main page , other pages part of that:

<body>      //some content     <ng-view></ng-view>  </body> 

Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -