We can already edit our heroes, but any changes are immediately lost in the void.
- Read the instructions and apply the changes carefully.
- Today we will only implement the first three parts.
- Enable HTTP services
- Follow the instructions
- Perform the changes you did for app.module.ts on app.module.tns.ts as well
- Simulate a data server
- Follow the instructions
- Use the names of your heroes
- Perform the changes you did for app.module.ts on app.module.tns.ts as well
- Heroes and HTTP
- Follow the instructions
- Tomorrow we will continue with Update heroes
Starting today you can add your new heroes and dispose of old, weak ones.
- Update heroes https://angular.io/tutorial/toh-pt6#update-heroes
- Follow the instructions
- Clarification regarding hero-detail.component.html
- Add the button before the final </div>
- At the end of hero-detail.component.tns.html, before </StackLayout> add
<Button text="Save" (tap)="save()"></Button>
- Add a new hero https://angular.io/tutorial/toh-pt6#add-a-new-hero
- Delete a hero https://angular.io/tutorial/toh-pt6#delete-a-hero
- Run both your web and mobile apps