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 modulo = angular.module('usuarios'); | |
| modulo.controller('UsuariosController', function($scope, usuarios){ | |
| $scope.usuario = {}; | |
| $scope.usuarios = usuarios.listar(); | |
| $scope.textoPequisa = ''; | |
| $scope.adicionar = function(usuario){ |
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
| angular.module('usuarios', []); |
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 ng-app="usuarios"> | |
| <head> | |
| <style> | |
| @IMPORT url("bootstrap-3.3.6-dist/css/bootstrap.min.css"); | |
| </style> | |
| </head> | |
| <body> | |
| <div class="container"> | |
| <div class="row" ng-controller="UsuariosController"> |
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 ng-app="contador"> | |
| <head> | |
| <style> | |
| @IMPORT url("bootstrap-3.3.6-dist/css/bootstrap.min.css"); | |
| </style> | |
| </head> | |
| <body> | |
| <div class="container"> | |
| <div class="row" ng-controller="ContadorController" ng-init="calcula()"> |
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 ng-app="contador"> | |
| <head></head> | |
| <body> | |
| <section ng-controller="ContadorController"> | |
| <input ng-model="numero1" type="number" ng-change="calcula()"> | |
| <input ng-model="numero2" type="number" ng-change="calcula()"> | |
| <select ng-model="operacao" ng-options="op for op in operacoesDisponiveis" ng-change="calcula()"> | |
| </select> | |
| <span>{{resultado}}</span> |
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 ng-app="contador"> | |
| <head></head> | |
| <body> | |
| <section ng-controller="ContadorController"> | |
| <input ng-model="numero1" type="number"> | |
| <input ng-model="numero2" type="number"> | |
| <span>{{numero1+numero2}}</span> | |
| </section> | |
| <script src="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
| let mapleader=',' | |
| set wildmenu | |
| set wildmode=list:longest,full | |
| set number | |
| set cursorline | |
| set tabstop=3 | |
| set shiftwidth=3 | |
| set softtabstop=3 | |
| set t_Co=256 | |
| syntax on |
NewerOlder