Advertisement
marcelofoxes

angular 1.5 component skel

Dec 7th, 2016
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. (function() {
  2.     'use strict';
  3.  
  4.     var nomeComponente = {
  5.         templateUrl: 'views/componentes/nome-componente.html',
  6.         controller: NomeDoController,
  7.         // transclude: true,
  8.         bindings: {
  9.             bindindValor: "=",
  10.             bindindFuncao: "&"
  11.         }
  12.     };
  13.  
  14.     angular
  15.         .module('br.com.marcelothebuilder')
  16.         .component('nomeComponente', nomeComponente);
  17.  
  18.  
  19.     NomeDoController.$inject = ["$scope"];
  20.  
  21.     function NomeDoController($scope) {
  22.         var model = this;
  23.         vm.searchText = '';
  24.         model.funcao = funcao;
  25.  
  26.         function funcao(argumento) {
  27.         }
  28.     }
  29. })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement