Skip to content

Lemoncode/angular-exercise

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Intro

The goal of this sample is to get started with Angular.

We will get as starting point an application that displays a list of github members that belongs to an organization (in the starting excercise is hardcoded to lemoncode), and we will add an input element to let the user choose another organization to query.

Excercise

  • Start with the starting implementation that is located under the folder 00_start.

  • Let's install the needed dependencies.

npm install
  • And start the application to check that everything is working as expected.
npm start
  • If we check the current implementation we are getting a list of members belonging to lemoncode organization, that's nice but we would like to let the user to be able to type the name of the orgnization he wants, hit ok and display the list of members for that organization.

  • Hints:

    • Create a new property on MembersTableComponent with the current organization name (lemoncode by default).
    • Create an input to hold the organization member name.
    • Tie up organization property change. Use ngModel (two way binding) directive to achieve this goal.
    • Use the organization property before running the query.

Optional

As optional part of this exercise you can migrate it to ngrx. Just for simplicity, just handle in ngrx the input changes and read the new state on component. Do not handle load data side effect.

  • Hints

    • Install @ngrx/store
    • Link store to app module (use forRoot)
    • Link store to feature module (use forFeature)
    • Create action for input organization changes
    • Create reducer
    • Dispatch action from component
    • Read the new state provide by ngrx

About Basefactor + Lemoncode

We are an innovating team of Javascript experts, passionate about turning your ideas into robust products.

Basefactor, consultancy by Lemoncode provides consultancy and coaching services.

Lemoncode provides training services.

For the LATAM/Spanish audience we are running an Online Front End Master degree, more info: http://lemoncode.net/master-frontend

About

Repository to get hands on with Angular basics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published