Skip to content

Instantly share code, notes, and snippets.

View furyFTW's full-sized avatar
:octocat:
Focusing

Eduard Bastin furyFTW

:octocat:
Focusing
View GitHub Profile
@furyFTW
furyFTW / example.js
Last active November 21, 2017 19:56
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.