Questions tagged as 'angular'

1
answer

Daughter Routes, Angular 5

I have a component, where it receives only one parameter in its route, like this: {path: ':modelo', component: BaseNumerica, This component, in turn, has 3 child routes, described as follows: {path: ':modelo', component: Bas...
asked by 10.07.2018 / 18:05
1
answer

Export Angular input value

Good night, guys. In Angular 6, I have the following code: import { Component, OnInit } from '@angular/core' import { FormGroup, FormBuilder } from '@angular/forms'; @Component({ selector: 'app-form', templateUrl: './form.component.html',...
asked by 07.06.2018 / 01:32
1
answer

How to implement PrimeNG Photo Gallery?

Personal greeting, I'm trying to implement a gallery of images as you can see in the demonstration model of PrimeNG just below; Gallery But I'm having difficulty due to lack of experience, please, my goal and implement this library....
asked by 05.06.2018 / 16:10
1
answer

Angular ReactiveForms

Hello, I'm trying to create a reusable form component using ReactiveForms. Like when I want to use a form, I'll just pass an array of my inputs from that form. But I doubt if this is really possible. In my case I caught here: export cla...
asked by 03.06.2018 / 01:59
1
answer

Pass ID to modal via ng-repeat AngularJS

How to get the ID (prod.productoId) of the row in ng-repeat and change to modal to update the record. It should be something with ng-click on the button but I'm not finding any examples. Someone could help. Thanks! <tr ng-repeat="prod i...
asked by 20.07.2018 / 15:44
2
answers

Error in ngModel call

I'm trying a 'Can not read property' reason_social 'of undefined' error when calling a ngModel in my html. I created an interface like this: export interface IEmpresas { nome_fantasia : string; razao_social : string; cnpj : string;...
asked by 26.05.2018 / 17:30
2
answers

How to disable the button on the Angular?

Look at the form well <form #registerForm="ngForm" (ngSubmit)="onSubmit(registerForm)" class="col-lg-10" > <p> <label >Nome</label> <input type="text" name="name" #name="ngModel" [(ng...
asked by 23.05.2018 / 22:55
1
answer

passing value webapi to select html in angular 2

I have a function in typescript that receives a json value from my webapi, and I need to pass this result to a select in html ... Service: teste: teste[]; public getNomes(type: string, formGroup: FormGroup) { let params: HttpParams = un...
asked by 23.05.2018 / 15:50
1
answer

Error trying to load a mat-table with angle 6

Starting with Angular 6. When trying to create a table, based on an example I got, I started to have the following problem. I've added these lines to my main module : import { MatInputModule, MatPaginatorModule, MatProgressSpinnerModule,...
asked by 03.07.2018 / 00:53
1
answer

Angular 2 Error HTTPResponse not found

I'm trying to implement a login screen that accesses an api through a server, I need to pass the user's email and password to the api, and it returns me NULL on error or a number on success ( id of the user). I'm getting the following message...
asked by 03.07.2018 / 02:53