Questions tagged as 'angular'

1
answer

I can not load data into an angular mat-select 6

This is my html <div class="container"> <form [formGroup]="createForm" (ngSubmit)="onPostCreateTypeFields()" style="width:400px; margin: 0 auto;"> <h1>Fields</h1> <div class="required-field-block">...
asked by 18.07.2018 / 16:00
1
answer

Display an alert box when loading page

I'm working with Angular and need to display an alert box when loading a component's html, however I can only do this from a button click, however I need the alert to open as soon as the page loads , without the need for interaction with any obj...
asked by 05.11.2018 / 12:17
2
answers

Can not read property 'setAttribute' of null with ngFor

I have a ngFor that adds multiple strings, and that data comes from an api <p class="teste" *ngFor="let element of objeto_retorno" >Filial {{ element.FILIAL }} = {{ element.TOTAL }} </p> and no ts: ngOnInit() { document....
asked by 15.08.2018 / 15:32
2
answers

getVersionNumber () returns me undefined in Ionic

I need to check the application version for validations, the problem is that the promisse getVersionNumber () is returning me undefined. I tried something like: ngOnInit(): void { let versaoApp; this.appVersion.getVersionNumber().th...
asked by 15.08.2018 / 15:20
1
answer

Angular Scripts

Hello, I have an angular application where I am using jquery scripts to implement a datapiker and a timepiker, those presented below: Ihaveaseparatescriptforinitializingthem,whichisshownbelow: jQuery(document).ready(function () {...
asked by 05.06.2018 / 07:35
1
answer

How to configure the routes in the Angular

I'm having trouble setting up child routes in my project. I got to set up some routes in my Angular project as you can see below, these routes are working perfectly; const ROUTES: Routes = [ { path: '', component: HomeComponent }, {...
asked by 02.08.2018 / 11:48
1
answer

Can not import the Observable package from the timer feature?

Look closely at this tutorial: Importing RXJS Observable functions in Angular 5 I'm having trouble importing the timer resource, I've tried writing the path in many ways and I can not import it. Notice how the header of my class is!...
asked by 31.07.2018 / 11:49
1
answer

Angular with TypeScript or JavaScript?

Searching a little about Angular (v 2+) I saw that in many places it is commented that Angular has TypeScript support and that its use is more common than pure JavaScript, so what are the advantages and disadvantages of using TypeScript or JavaS...
asked by 20.06.2018 / 02:40
2
answers

How to create an array with results obtained through an observableany [] TYPESCRIPT

Well, I get an array of keys, which I use to search the firebase: addprd(a:string){ this.prdarray.push(a); } After adding the keys I want to use in the search I use the following medoto: queryProd(as:string){ const prdN :Observable<...
asked by 04.07.2018 / 12:46
2
answers

How do you pass two parameters in the Ng-click Angular JS?

<button class="btn btn-conf-t btn-deletar" ng-click="deleteCategory(cat.id)"><i class="fa fa-trash"></i></button> Here I just pass one parameter, is it possible to pass ng-click="deleteCategory(cat.id, cat.nome)"...
asked by 07.05.2018 / 14:19