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
| var express = require('express'); | |
| var bodyParser = require('body-parser'); |
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
| <table data-ng-controller="ProdutosCtrl as ctrl"> | |
| <tr> | |
| <th>Produto</th> | |
| <th>Valor</th> | |
| </tr> | |
| <tr data-ng-repeat="produto in ctrl.produtos"> | |
| <td>{{ produto.nome }}</td> | |
| <td>{{ produto.valor | currency }}</td> | |
| </tr> | |
| </table> |
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
| <table data-ng-controller="ProdutosCtrl as ctrl"> | |
| <tr> | |
| <th>Produto</th> | |
| <th>Valor</th> | |
| </tr> | |
| <tr data-ng-repeat="produto in ctrl.produtos"> | |
| <td>{{ produto.nome }}</td> | |
| <td>{{ produto.valor }}</td> | |
| </tr> | |
| </table> |
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
| <table data-ng-controller="ProdutosCtrl as ctrl"> | |
| <tr> | |
| <th>Produto</th> | |
| <th>Valor</th> | |
| </tr> | |
| <tr data-ng-repeat="produto in ctrl.produtos"> | |
| <td>{{ produto.nome }}</td> | |
| <td>{{ produto.valor | currency: 'R$ ' }}</td> | |
| </tr> | |
| </table> |
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
| pg_restore --verbose --clean --no-acl --no-owner -h localhost -U leandroh -d database_name db/backup/24-02-2016-10\:08.dump |
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
| <div>Bem vindo ao mundo das diretivas!</div> |
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 { |
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
| { | |
| template: '<div>Bem vindo ao mundo das diretivas!</div>' | |
| } |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>Bem vindo ao mundo das diretivas no AngularJS!</title> | |
| </head> | |
| <body ng-app="app"> | |
| <minha-diretiva></minha-diretiva> | |
| <script src="https://code.angularjs.org/1.5.0/angular.min.js"></script> |
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
| var app = angular.module('app', []); | |
| app.directive('webComponent', function factory(dependencias) { | |
| var directiveDefinitionObject = { | |
| priority: 0, | |
| template: '<div></div>', // or // function(tElement, tAttrs) { ... }, | |
| // or | |
| // templateUrl: 'directive.html', // or // function(tElement, tAttrs) { ... }, | |
| transclude: false, | |
| restrict: 'A', |