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
| const functions = require("firebase-functions"); | |
| import * as express from "express"; | |
| import {ngExpressEngine} from "@nguniversal/express-engine"; | |
| const {AppServerModule} = require("../dist/app/server/main"); | |
| const index = "../dist/app/browser/index"; | |
| const app = express(); |
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
| popView(){ | |
| this.navCtrl.getPrevious().data.name = 'Flávio'; | |
| this.navCtrl.pop(); | |
| } |
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
| pushView(){ | |
| this.navCtrl.push(ContactEditPage, { | |
| userId: '123', | |
| name: 'Pedro' | |
| }); | |
| } |
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
| <ion-input [type]="isTextFieldType ? 'text' : 'password'"> | |
| </ion-input> | |
| <!-- | |
| Botão que ao ser pressionado, executa o método togglePasswordFieldType | |
| que por sua vez inverte o valor da propriedade isTextFieldType | |
| --> | |
| <button (click)="togglePasswordFieldType()" > | |
| <!-- | |
| Os valores 'eye-off' e 'eye' são nomes de ionicons. |
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
| import { Injectable } from '@angular/core'; | |
| import { LoadingController, LoadingOptions, Loading } from 'ionic-angular'; | |
| @Injectable() | |
| export class AcdLoadingService { | |
| constructor( | |
| public loadingCtrl: LoadingController | |
| ) {} |
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
| 'use strict'; | |
| // validators.js | |
| const mongodb = require('mongodb'); | |
| const regex = require('./regex.helper'); | |
| const validator = require('validator'); | |
| module.exports = { | |
| isArray: function(value) { | |
| return Array.isArray(value); |
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
| //server.js | |
| require('../routes')(api); | |
| //routes/index.js | |
| //Carregamento das rotas | |
| const filesNamesFromDirectory = require('../helpers/filesNamesHlp').fromDirectory; | |
| const dir = require('path').join(__dirname, 'routes'); | |
| const filesNames = filesNamesFromDirectory(dir); | |
| let route; |
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
| /********************** | |
| [Page/Include] | |
| **********************/ | |
| //Variáveis | |
| //Placeholders | |
| //Mixins (úteis apenas para este arquivo) | |
| //Estilização do elemento que envolve a page/include |
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
| /** | |
| * Seletores irmãos em CSS | |
| */ | |
| h1:hover + h2{ | |
| color:red; | |
| } /* funciona */ | |
| h1:hover ~ h2{ | |
| font-size:14px; |