Created
March 1, 2016 10:08
-
-
Save kutanov/3754dc2f0b5e46ff3189 to your computer and use it in GitHub Desktop.
This file contains 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("tree", ['ItemsService', function($compile) { | |
return { | |
restrict: "E", | |
scope: { | |
itemName: '=' | |
}, | |
controller: function($scope, ItemsService) { | |
var items = ItemsService[$scope.itemName].query(); | |
} | |
} | |
}]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment