Skip to content

Angular 2 - FAQ / Commonly asked questions #8

@juristr

Description

@juristr

Hi,

I'd like to create a blog post, collecting and answering some most commonly asked Angular 2 questions and would be happy to get them from you 😄. I'm curious what puzzles you most. Besides that, your questions will help me get some valuable input for my Angular 2 screencast series I'm currently working on.

So, you're an Angular newbie, or simply getting started with Angular 2? You don't know where to start? Ask your question here, I'll collect them and publish a blog post, hopefully with some hints & answers!


Questions

..aggregated out of the comments below

  • Angular 2 build setup\
    • Are there any starter projects that I could use to get started with my Angular 2 app?
    • What is SystemJS? JSPM? Webpack?
    • Should I check in my transpiled files into src-ctrl? Generate to a different directory?
  • What about naming conventions. Is there a styleguide already like there is for Angular 1?
  • Do we already have open-source component libraries, like the huge AngularJS ecosystem? #
  • What kind of build system should we use? Grunt, gulp ??
    • Does the angular-cli build command replace gulp? Does it handle bower? #
  • What's a good workflow to create a distribution package that can be deployed in production? #
  • Why do people pass in external directives into the @Component decorator like directives: [...ROUTER_DIRECTIVES]? #
  • In the @Component decorator: what is the difference between the providers array and the viewProviders array?
    See Minko's blog post on this
  • Why does *ngFor and *ngIf have a * star symbol in front?
    Cause it indicates they're registered as a template

(Once I have a couple, I'll publish the post with answers and check them here)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions