Put in order · Angular course · Module 8: Forms
Resetting a FormArray before loading
Order the steps for re-populating a FormArray with samurai data (execution order inside the method, line by line).
Items to put in order
- this.skills.clear()
- })
- this.skills.push(this.fb.group({ ... }))
- samurai.skills.forEach(skill => {
You can check the correct answer by solving this task in the CodeWorlds game.