escardin / angular2-community-faq

MIT License
101 stars 11 forks source link

Angular 2 Community FAQ

Table of Contents

General Angular 2 Questions

Setting up Angular 2 with...

RxJS

Router

Forms

Templates

Services and Components

Testing

Making fun things

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?

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

Forms

Validation

How do I use more than one validator on a single control?

How do I make a custom validator?

How do I make an async validator?

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

Complex Forms

How do I have a select box that is dependent on another select box

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

How do I have form elements in sub components