Angular Responsive
Requirements
AngularJS
≥1.5.x
Where to get it
Via NPM:
Run npm install angular-responsive
from the command line.
Include script tags similar to the following:
Install using commonjs (eg componentjs, Webpack, Browserify):
angular.module('myModule', [require('angular-responsive')]);
Via Github
Download the code from https://github.com/nkovacic/angular-responsive/releases/latest, unzip the files then add script tags similar to the following:
Usage
- Include
angular-responsive.min.js
- Add a dependency to
angular-responsive
in your app module, for example:angular.module('myModule', ['nk.responsive'])
. - Add the attribute
responsive-if
to your element. It can have selected number value: