Preparing our development environment
Like for previous chapters, let's create a new project as explained in Chapter 2, Setting Up an Angular 2 Development Environment with angular-cli. You can also remove all the existing folders and remove all the unnecessary code from app.component.ts
:
[app.component.ts] import { Component } from '@angular/core'; @Component({ selector: 'app-root', template: `<h1>Angular2 components</h1>` }) export class AppComponent {}
Get Angular 2 Components now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.