This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| app.directive('whatIsInThese', ['$compile', function($compile) { | |
| return function(scope, elem, attrs) { | |
| //getting a list of space-separated property names | |
| //from the attribute. | |
| var these = attrs.whatIsInThese.split(' '), | |
| //start creating an html string for our "view". | |
| html = ''; | |
| //append a bunch of bound values from the list. |