We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
having the following module:
angular.module('myApp', ['ui.router','routeStyles']) .config(function($stateProvider, $urlRouterProvider){ // For any unmatched url, redirect to / $urlRouterProvider.otherwise("/"); // Now set up the states $stateProvider .state('home', { url: "/", templateUrl: "views/home.html" }) .state('addons', { url: "/addons", templateUrl: "views/addons.html", css: 'css/forge_addons.css' }) .state('documentation', { url: "/documentation", templateUrl: "views/documentation.html", css: 'css/forge_documentation.css' }); });
Whenever a state changes, the CSS is not being applied.
The text was updated successfully, but these errors were encountered:
It looks like it considers only states with the views attribute. As for the example in https://scotch.io/tutorials/angular-routing-using-ui-router, templateUrl should be enough
views
templateUrl
Sorry, something went wrong.
Fixes tennisgent#12: States including css are now used
80f3b7c
This fix allows the usage of the css attribute inside the state instead of expecting it to be declared inside views
94c8d9b
Merge pull request #13 from gastaldi/patch-1
840a611
Fixes #12: States including css are now used
No branches or pull requests
having the following module:
Whenever a state changes, the CSS is not being applied.
The text was updated successfully, but these errors were encountered: