First app

Once the Angular CLI is in place the time has come to create your first project. To do so place yourself in a directory of your choice and type the following:

ng new <give it a name here>

Type the following:

ng new TodoApp

This will create a directory called TodoApp. After you have run the preceding command, there are two things you need to do to see your app in a browser:

  • Navigate to the just created directory
  • Serve up the application

This will be accomplished by the following commands:

cd TodoApp
npm start

At this point, open up your browser on http://localhost:4200 and you should see the following:

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset