I'm often times quite overwhelmed with keeping up with technologies… I'd like to add a css style sheet to a UI Router state.
I found this post on this exact issue, but I've never used Bower. I certainly understand the benefit of Bower, but to install it, it requires node, npm and git. I've never used node or npm and would rather not research two new unrelated things in the middle of a current project.
Can I please get some insight on how to add a css style sheet to a ui router state without the use of Bower (node and npm)?
These are the instructions from the post that I don't understand.
Ensure that your application module specifies uiRouterStyles as a dependency:
angular.module('myApplication', ['uiRouterStyles'])
Add css file(s) relative path to the state data object
.state('state1', {
url: '/state',
controller: 'StateCtrl',
templateUrl: 'views/my-template.html',
data: {
css: 'styles/some-overrides.css'
}
})
I understand dependency injection, but don't understand what to do with the uiRouterStyles dependency. Is this similar to a service or factory?