Provider | Singleton | Instantiable | Configurable |
---|---|---|---|
Constant | Yes | No | No |
Value | Yes | No | No |
Service | Yes | No | No |
Factory | Yes | Yes | No |
Decorator | Yes | No? | No |
Provider | Yes | Yes | Yes |
This file contains 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
.then((d) => { | |
let respSuccess = {}; | |
respSuccess.pessoas = d; | |
// tb endereço | |
if (objEndereco.endcli_logradouro || objEndereco.endcli_cep || objEndereco.endcli_bairro || | |
objEndereco.endcli_pais || objEndereco.endcli_cidade || objEndereco.endcli_estado || | |
objEndereco.endcli_numero || objEndereco.endcli_complemento) { | |
knex('tb_Endereco_Cliente') |
This file contains 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
.then((daAtualizado) => { | |
pessoas | |
.forge({ | |
cli_id: person.attributes.id | |
}) | |
.fetch() | |
.then((d) => { | |
// instancio o objeto que irá receber os valores | |
let respSuccess = {}; |
This file contains 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
.then((pessoasData) => { | |
const list = pessoasData.map((data, i) => { | |
var objetoSend = {}; | |
objetoSend.pessoas = [{ | |
"cli_id": data.cli_id, | |
"fk_saas_id": data.fk_saas_id, | |
"fk_user_id": data.fk_user_id, | |
"cli_nome": data.cli_nome, | |
"cli_email": data.cli_email, |
This file contains 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.tabelasFixas.cest') | |
.controller('CestController', CestController); | |
/** @ngInject */ | |
function CestController($state, Cest, $timeout, $http, $log) |
This file contains 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
/** | |
* extend the localStorageService (https://github.com/grevory/angular-local-storage) | |
* | |
* - now its possible that data stored in localStorage can expire and will be deleted automagically | |
* - usage localStorageService.set(key, val, expire) | |
* - expire is an integer defininig after how many hours the value expires | |
* - when it expires, it is deleted from the localStorage | |
*/ | |
app.config(($provide) => { | |
$provide.decorator('localStorageService', ($delegate) => { |
This file contains 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 data-ng-app="TestApp"> | |
<head> | |
<script src="http://code.angularjs.org/1.2.9/angular.js"></script> | |
<script> | |
angular.module('TestApp', []) | |
.factory('beforeUnload', function ($rootScope, $window) { | |
// Events are broadcast outside the Scope Lifecycle |
This file contains 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
/** | |
* Converter estados - (padrão americano sem acentos) - Glauber Funez | |
**/ | |
const ConverterEstados = function(val) { | |
var data; | |
switch (val.toUpperCase()) { | |
case "AC" : data = "Acre"; break; | |
case "AL" : data = "Alagoas"; break; | |
case "AM" : data = "Amazonas"; break; |
This file contains 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
## ATUALIZAR OS | |
sudo apt-get update && sudo apt-get -y upgrade && sudo apt-get -y dist-upgrade | |
## INSTALAR O MYSQL-SERVER | |
sudo apt-get install mysql-server | |
## INSTALAR O APACHE2 | |
sudo apt-get install apache2 | |
## CHECAR VERSAO DO PHP NO REPOSITORIO |
OlderNewer