GithubHelp home page GithubHelp logo

ejfrias / angular-filter-ionic-list Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 1.8 MB

Custom Angular filter for Ionic list

License: GNU General Public License v3.0

CSS 14.51% HTML 0.06% JavaScript 85.43%

angular-filter-ionic-list's Introduction

angular-filter-ionic-list

A custom Angular filter for filtering Ionic list using a search box. Made for Angular 1.

Requirements

AngularJs and Ionic

Demo

http://ejfrias.com/playground/angular-filter-ionic-list

How to see it in action in your local server

  1. Start an ionic app ionic start app blank
  2. Copy www folder from this repo and replace the one inside the ionic app that you've just created
  3. And voila! Open a browser, navigate to your app and you should see it work

How to use

First, add a reference of angular-filter-ionic-list.js to your index.html

<script src="/path/to/angular-filter-ionic-list.js"></script>

Then, add the dependency in your controllers.js or app.js or to whichever file it is based on how you build your app structure. In this repo's case, it was added in controllers.js

angular.module('app.controllers', ['ionic', 'angular-filter-ionic-list'])

After that, just check out controllers.js and templates/list.html on how the list filter was implemented. The steps are straight forward so it should be easy to understand.

Just to note, be familiar with Ionic's collection-repeat directive and Angularjs' filter component.

Contributing

Since this filter was made to be as simple as possible, requesting and/or proposing a feature would not be entertained. However, submitting bugs/issues are always welcome.

angular-filter-ionic-list's People

Contributors

ejfrias avatar elvis878 avatar

Watchers

 avatar

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.