Skip to content

Instantly share code, notes, and snippets.

View TomCosta's full-sized avatar
😄
Cellar door

Everton (Tom) Costa TomCosta

😄
Cellar door
View GitHub Profile
@TomCosta
TomCosta / Import-Bootstrap-angular
Created November 7, 2022 23:28
Import Bootstrap in Angular
FILE: app.module.ts
imports: [
BrowserModule,
NgbModule,
AppRoutingModule,
]
FILE: angular.json
"styles": [
@TomCosta
TomCosta / Ionic-3-CPF_CNPJ-input-mask
Created October 22, 2017 00:59
Ionic 3 CPF/CNPJ input mask. Independent of which is the inputted data either a CPF or a CNPJ. It add mask.
<form #loginForm="ngForm">
<ion-item>
<ion-label floating>CPF/CNPJ</ion-label>
<ion-input [(ngModel)]="cpf_cnpj" (blur)="cpf_cnpj = format(cpf_cnpj)" name="cpf_cnpj"></ion-input>
</ion-item>
<button ion-button full type="submit" color="sicor" (tap)="login(signForm.value)">Login</button>
</form>