ng-css-injector

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

Added by: Sam Deering

GitHub

Repository

frankin5/ng-css-injector

Stats

Stars: 0

Watchers: 0

Forks: 0

Author

Frankin5
Frankin5

Module Description

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')}});
});

Module stats last updated: 2015-04-19 02:58:28

Disclaimer: Some data on this page may have been gathered from the authors GitHub respository. If you see any mistakes or outdated information please let us know. Thanks!