I’ve been teaching myself to code for the past couple of months and I am in love with it. I’ve built a few of the front end projects on the FCC curriculum but I wanted to do something a little different. I saw the idea for this project somewhere (I forgot where) online and decided I’d build it.
I have used this project as a starting ground for many techniques I’ve picked up and it’s also how I learned Angular. Right now I only know the basics of Angular but I definitely plan on learning more. It’s amazing what you can do with it in just a little bit of code.
Anyways what this project does is it takes input from the user, passes that text through two algorithms I wrote to find out if it is a state and what the two letter abbreviation for that state is. Then it uses the angular $http.get for an API call with the state returned from my algorithms. Finally it uses ng-repeat to to return certain pieces of data for each object to display a list of Legislators from the user’s inputted state.
Please take a look at this and let me know what you think. Any comments or criticism is welcome.
On a side note, I am working towards adding auto complete and pagination. So if you have any sites or resources for that please share.
Here is my Github for anyone interested in my repositories.