You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
542 B
542 B
Using an API with AJAX
Lesson Objectives
- Create a new app
- Generate a new component
- Clean up app.component.html
- Add search component to app
Create a new app
ng new starwars
cd starwars
ng serve --open
Generate a new component
ng generate component search
Clean up app.component.html
Set src/app/app.component.html contents to:
<h1>Star Wars Character Search App</h1>
Add search component to app
<h1>Star Wars Character Search App</h1>
<app-search></app-search>