angular-responsive
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

Angular Responsive

License NPM Release NPM Monthly Downloads

Requirements

  1. AngularJS1.5.x

Where to get it

Via NPM:

Run npm install angular-responsive from the command line. Include script tags similar to the following:

<link rel='stylesheet' href='/node_modules/angular-responsive/dist/angular-responsive.css'>
<script src='/node_modules/angular-responsive/dist/angular-responsive.min.js'></script>

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:

<link rel='stylesheet' href='/path/to/unzipped/files/dist/angular-responsive.min.css'>
<script src='/path/to/unzipped/files/dist/angular-responsive.min.js'></script>

Usage

  1. Include angular-responsive.min.js
  2. Add a dependency to angular-responsive in your app module, for example: angular.module('myModule', ['nk.responsive']).
  3. Add the attribute responsive-if to your element. It can have selected number value:
<div responsive-if="mobile,tablet"></div>

Dependents (0)

Package Sidebar

Install

npm i angular-responsive

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

61.6 kB

Total Files

14

Last publish

Collaborators

  • nkovacic