Skip to content

e-oz/angular2-community-faq

 
 

Repository files navigation

Angular 2 Community FAQ

Components

How do I communicate between two sibling components?

There are two common approaches; Use a shared service, or have a common parent pass messages between the two.

Shared service example

Router

Any good tutorials for the Router?

Not yet, in the meantime you can look at this: https://www.youtube.com/watch?v=z1NB-HG0ZH4

You can also take a look at this Plunkr, which while complex, does just about everything you would want with the router. http://plnkr.co/edit/Bim8OGO7oddxBaa26WzR?p=preview

How do I do breadcrumbs with the Router?

See: http://plnkr.co/edit/4cw2fPv3vX36v5Lu9Dnq?p=preview

How do I do make the Router components and directives available for every component?

See: http://plnkr.co/edit/FmMBasgv1rC1Qs6sJTMA?p=preview

RXJS

What are observables and where can I learn more about them and Rx?

Forms

Validation

[How do I validate a control based on the value in another control?] (http://plnkr.co/edit/NqQhBPJJo1PzHfisvh9J?p=preview)

Complex forms

AKA: How do I make a state/province dropdown that changes contents when the country changes?

Templates

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published