Last active
February 19, 2016 15:46
-
-
Save leandroh/378d03aa06dafc61188e to your computer and use it in GitHub Desktop.
Template de uma diretiva no AngularJS
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 characters
| (function() { | |
| 'use strict'; | |
| angular.module('app', []); // Cria nosso módulo principal | |
| // Cria uma diretiva tendo como parametros uma string e uma function | |
| angular.module('app') | |
| .directive('minhaDiretiva', function() { | |
| return { | |
| templateUrl: 'template_diretiva.html' | |
| } | |
| }); | |
| })(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment