pacosta613 / angular-replace-lab-v-000

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Understanding "replace"

Objectives

  • Use the replace property

Instructions

Let's recreate our success and error messages. Create two directives called successMessage and errorMessage in the SuccessMessage.js and ErrorMessage.js files. The directives should render <div>Woohoo! Success!</div> and <div>Oh no, an error occurred!</div> respectively.

Make them both utilize the replace option!

About

License:Other


Languages

Language:JavaScript 65.5%Language:HTML 34.5%