Last active
August 29, 2015 14:22
-
-
Save PlaidShirtPat/51e4e969c8242cfd97f4 to your computer and use it in GitHub Desktop.
Revisions
-
Patrick Brown revised this gist
May 28, 2015 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -9,7 +9,7 @@ </my-section> ----- ng code ----- .directive('dirCtrl', function(){ return{ scope: { -
Patrick Brown created this gist
May 28, 2015 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,25 @@ ----- template ------ <my-section> <header> {{dirList.length}} </header> <section-body> <my-dir/> </section-body> </my-section> ----- ng code ----- .directive('myDir', function(){ return{ scope: { }, template: 'dir-template', controller: 'dirCtrl', link: function(element, attrs, scope){ } } }) .controller('myCtrl', function(){ $scope.dirList = [1, 2, 3]; });