Skip to content

learn-co-curriculum/angular-using-scope-lab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Using "scope"

Objectives

  • Implement isolate in the Directive

Instructions

In this repo, we've got a controller named ContactController. This has a few contacts in an array.

Create a contact card directive. We should loop through the contacts, and pass their information into this directive.

The directive should nicely display the data we pass through, with prefixed titles. For example, we should see NAME: Bill Gates in our view.

The directive HTML should look like this:

<div>
	<h4>Contact Card</h4>
	<label>Name:</label>

	<label>Email:</label>

	<label>Phone:</label>

</div>

You should then fill in the blanks with the data!

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •