Skip to content

Instantly share code, notes, and snippets.

@samuelsimoes
Last active August 29, 2015 14:04
Show Gist options
  • Select an option

  • Save samuelsimoes/ae4e75a27c252ee2fcea to your computer and use it in GitHub Desktop.

Select an option

Save samuelsimoes/ae4e75a27c252ee2fcea to your computer and use it in GitHub Desktop.

Revisions

  1. samuelsimoes revised this gist Aug 23, 2014. 1 changed file with 5 additions and 5 deletions.
    10 changes: 5 additions & 5 deletions gistfile1.html
    Original file line number Diff line number Diff line change
    @@ -1,16 +1,16 @@
    <!-- diretriz que faz a inclusão -->
    <!-- directive that make the partial inclusion -->
    <div ng-include src="my_template.html"></div>

    <!-- my_template.html -->
    <div ng-controller="MyController" class="my-container">
    <strong>My template</strong>
    </div>

    --------------
    ou
    --------------
    <!-- ---- -->
    <!-- or -->
    <!-- ---- -->

    <!-- diretriz que faz a inclusão -->
    <!-- directive that make the partial inclusion -->
    <div ng-include src="my_template.html" ng-controller="MyController" class="my-container"></div>

    <!-- my_template.html -->
  2. samuelsimoes created this gist Jul 30, 2014.
    17 changes: 17 additions & 0 deletions gistfile1.html
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,17 @@
    <!-- diretriz que faz a inclusão -->
    <div ng-include src="my_template.html"></div>

    <!-- my_template.html -->
    <div ng-controller="MyController" class="my-container">
    <strong>My template</strong>
    </div>

    --------------
    ou
    --------------

    <!-- diretriz que faz a inclusão -->
    <div ng-include src="my_template.html" ng-controller="MyController" class="my-container"></div>

    <!-- my_template.html -->
    <strong>My template</strong>