Giter VIP home page Giter VIP logo

ng-location-search's Introduction

location-search

Angular Location Search directive.

Installing

bower install ng-location-search
angular('yourAngularApp',['ngLocationSerach']);

Usage/Example Form

<form role="search" novalidate data-ng-submit="$searchFields" name="searchForm" class="search-form" location-search="search" location-search-reset="true">
  <label>Search for</label> 
  <input type="search" data-ng-model="$searchFields.search" class="search-field form-control" placeholder="Search" required>
  <button type="submit" class="btn btn-search-submit"><i class="fa fa-search"></i></button>
</form>

Usage/Example ngModel with ui-select module

<ui-select data-ng-init="optionsOrderBy.data=[{'name: 'All', 'slug':'{'orderby':null, 'order':null}'},{'name:'Price','slug':'{'orderby': 'price','order':'asc'}'}]" location-search="['orderby', 'order']" data-ng-model="optionsOrderBy.selected" search-enabled="false" theme="bootstrap" >
  <ui-select-match >{{$select.selected.value.name}}</ui-select-match>
  <ui-select-choices position="auto" repeat="option.value.slug as (key, option) in optionsOrderBy.data | filter: { value: { name: $select.search }}">
    <span data-ng-bind-html="option.value.name | highlight: $select.search"></span>
  </ui-select-choices>
</ui-select>

ng-location-search's People

Contributors

aubvmk avatar auban avatar

Watchers

James Cloos 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.