Skip to content

Instantly share code, notes, and snippets.

@PlaidShirtPat
Last active August 29, 2015 14:22
Show Gist options
  • Save PlaidShirtPat/51e4e969c8242cfd97f4 to your computer and use it in GitHub Desktop.
Save PlaidShirtPat/51e4e969c8242cfd97f4 to your computer and use it in GitHub Desktop.

Revisions

  1. Patrick Brown revised this gist May 28, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -9,7 +9,7 @@
    </my-section>

    ----- ng code -----
    .directive('myDir', function(){
    .directive('dirCtrl', function(){
    return{
    scope: {

  2. Patrick Brown created this gist May 28, 2015.
    25 changes: 25 additions & 0 deletions gistfile1.txt
    Original 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];
    });