angular-body-class

An Angular directive that adds the current route controller name as a class to the element it is used It is meant to be primarily used on the body element of the HTML BE CAREFUL: It deletes any existing classes on that element

Usage no npm install needed!

<script type="module">
  import angularBodyClass from 'https://cdn.skypack.dev/angular-body-class';
</script>

README

angular-body-class Build Status

An Angular directive that adds the current route controller name as a class to the element it is used
It is meant to be primarily used on the body element of the HTML
BE CAREFUL: It deletes any existing classes on that element

Installation

Download node at nodejs.org and install it, if you haven't already.

npm install angular-body-class --save

Tests

npm install
npm test

Dev Dependencies

License

MIT

Generated by package-json-to-readme