GithubHelp home page GithubHelp logo

nkovacic / angular-responsive Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 1.0 29 KB

AngularJS directive that shows/hides content depending on the provided breakpoints. Features also a expressive service for fine tuning your responsive design.

License: MIT License

TypeScript 67.15% HTML 3.40% CSS 0.10% JavaScript 29.36%

angular-responsive's Introduction

Angular Responsive

License NPM Release NPM Monthly Downloads

Requirements

  1. 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:

<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>

angular-responsive's People

Contributors

nkovacic avatar zadvornyi avatar

Watchers

 avatar  avatar

Forkers

zadvornyi

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.