Code Monkey home page Code Monkey logo

typeahead-custom-directive's Introduction

AngularJs - TypeAhead Custom directive

This application was developed to enhance my AngularJS knowledge of how custom directives work and how to access JSON data via REST API calls. It enables the user to type ahead 3 characters and choose a user from the drop down list populated from a JSON file via REST calls. It also saves data to the Firebase cloud environment.

Folders & Files

firebase.json
index.html
app
--app.js
css
--bootstrap.min.css
--styles.css
data
--userDetails.json
templates
--templateurl.html

Technology Stack

  • HTML5
  • CSS3
  • AngularJS
  • Bootstrap
  • Firebase

How to run the application

The application should run on a localhost. Running the index.html will start the application.

Features included:

  • Works across major browsers IE9, Chrome, Safari, FireFox
  • Save button will enabled only after all the required fields are filled out
  • Affected users field is implemented as a custom directive. It includes type-ahead after 3 characters. The data for the typeahead directive is populated from JSON file through REST call.
  • On completion of successfully saving data, the user will be notified of the delay using a spinner and a notification alert.

Few data samples to test typeahead directive

  • alle - Allen Allbrook, Allexis Border, Allen Parker
  • jack - Jack Sparrow, Jack Niel, Jack Pharrel
  • mart - Martin Wheeler, Martin Sparrow

References

typeahead-custom-directive's People

Contributors

kavmuthu avatar

Watchers

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