Gold Challenge: Array of Alerts

Restructure the flash-alert component to accept an array of alerts with different alert types and messages. You may need to have multiple warnings on the screen at the same time. Use an Ember.ArrayProxy in place of the individual properties setting the alert. Add to the array with the message, type, and a new index property so that you can remove the item from the array when you click it.

Get Front-End Web Development: The Big Nerd Ranch Guide 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.