Skip to content

wdi-sf-july/trie_angular_lab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 

Repository files navigation

Trie Lab with Angular

For tonight's lab, we'd like you to use your knowledge of tries and services to create a Rails/Angular app using the learn and autocomplete methods from your trie

Stages

  1. Set up a new rails app and include angular and angular-route (you should only need one route in your angular router)

  2. Create a word model - it should have a name and a description (Example: taco.name = "taco" taco.description = "a tasty treat").

  3. Create an angular app and controller to save and display words using $http.

  4. Create a service for your words which has the methods for allowing a user to save new words and fetch all words.

  5. Do your best to try to implement all of the trie methods from last night's lab and at the very least, make sure your learn method is passing.

  6. Once you have a working learn method, turn your Trie into a service.

  7. When a user saves a word, your trie should learn it.

    • If you're struggling try to get to at least stage 5.

Bonus

  1. Finish implementing all of the Trie methods and make sure the tests pass
  2. Create a search field and when a user types in a word, it should suggest words (use your autocomplete function)
  3. Add an additional route that allows the user to click on a word and see its title and description (you will need to research $routeParams to complete this)

About

Lab using factories and tries

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published