Questions tagged as 'angular'

1
answer

Search Array with variable case-insensitive javascript

I need to search an array with values of type: equipamentos = [{marca: 'Nomedamarca1', modelo: 'Modelo1'}, {marca: 'Nomedamarca2', modelo: 'Modelo2'}, {marca: 'AlgumNomeComCase', modelo: 'Modelo3'},...
asked by 26.06.2018 / 17:00
1
answer

Pass value to another page in angular

Good morning !! On a certain page I have a button that takes code and name of a client and I need to pass this information to an input from another page: Function page that takes code and name <tr *ngFor="let pesquisas of pesquisa">...
asked by 18.06.2018 / 15:43
1
answer

POST Method in Angular

I have a simple application in Angular and I need to call my API to get a token . But I am facing difficulties. I'll try to explain a bit about my flow. I created a service class where I instantiate it only once to store a Token. This token...
asked by 11.06.2018 / 13:46
1
answer

Can not find component declaration after applying lazy loading

I'm trying to apply lazy loading in my application, however after I removed the module import in the app.module and left only in loadChildren, my application does not recognize one of my component declarations. My Routing Module app: //Impo...
asked by 09.10.2018 / 14:15
2
answers

How to understand the MVC architecture in Angular 4?

Hello everyone, this is my first question and it's about Angular 4 . So I studied the Angular Js 1.x and I could fully understand where the MVC architecture fits into the framework , but did not feel the same in < in> Angular 4 . I know, t...
asked by 29.05.2018 / 19:45
1
answer

Select array to save

asked by 03.09.2018 / 16:38
1
answer

Pipe not found - Angular 5

I'm having a problem creating a custom Pipe. I created the following module (pipes.module.ts): import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { CnpjPipe } from './cnpj.pipe'; @NgModule({...
asked by 26.04.2018 / 14:31
6
answers

Current date Angular 2

I need to get the current system date. I use Angular 2. I tried the following validation, but without success. var now = new Date; if(dataInicial > now.getFullYear() + now.getMonth() + now.getDate()){ alert("Data inicial maior que...
asked by 01.11.2017 / 15:00
1
answer

FirebaseListObservable transforms into Object Array

I'm using Ng2-Smart-Table, according to the documentation it accepts an array of objects to mount the table: No HTML: <ng2-smart-table [settings]="settings" [source]="data"></ng2-smart-table> In Javascript import { NgxData...
asked by 31.05.2017 / 14:04
2
answers

How do I emulate an application of ionic 2 on the tablet, and also how does it generate a .ipa and .apk?

I want to emulate my ionic 2 application on the tablet but I can not, I already uploaded it to the ionic cloud but it only works on the ionic view application, I also used the ionic emule and the ionic run, but when it opens the emulator of the...
asked by 27.03.2017 / 21:09