Skip to content

frankin5/ng-css-injector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Introduction

This angularjs module facilitates injecting a single view specific css stylesheet into the header for a specfic route.

Usage

First load the module:

var mymodule = angular.module('mymodule', ['ngRoute', 'ngCssInjector'])

Then tie stylesheets to routes:

mymodule.config(function($routeProvider, $stylesheetInjectorProvider){
    $routeProvider.when('/', { templateUrl:'home.html', resolve: {stylesheet: $stylesheetInjectorProvider.injectStylesheet('css/home.min.css')}});
});

About

This angularjs module facilitates injecting a single view specific css stylesheet into the header for a specfic route.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published