Questions tagged as 'angular-6'

0
answers

Angular 6 - Portal

I need to create a portal style application in Angular 6. This application should be able to include other applications. Explaining better: I have 3 applications: APP1 APP2 PORTAL Within the Portal there will be two menus, one for...
asked by 16.07.2018 / 14:21
0
answers

Load component dynamically

How do I load a dynamic component depending on the module I'm seeing in Angular? I want to have a sidebar that will display content according to the module. For example: If you are viewing the Users module, I want to see the list of most a...
asked by 20.07.2018 / 01:58
1
answer

Call delete on angle 6

I have this HTML <div class="container-fluid"> <div class="row"> <div class="col-md-12"> <table class="table table-striped table-bordered table-hover"> <caption>Lista de Ope...
asked by 20.07.2018 / 18:57
1
answer

Table mat-table does not render in browser with Angular 6

In the browser debug I get this error (screenshot): Thisismypagehtml(test)<div><label>Nome:<input[(ngModel)]="operator.Name" placeholder="Nome"> </label> </div> <div> <label>Versão: <input [(...
asked by 03.07.2018 / 16:40
2
answers

How to get the return of a service inside an @component with angle 6

I made this table (omit the TR and TD's). <table mat-table [dataSource] = "dataSource" class="mat-elevation-z8"> If you create a mapped array, it works. Below my component ( commented lines, they work, a struck array ): import { Com...
asked by 04.07.2018 / 22:40
1
answer

How to consume an API using Angular 6?

How to get the postback through the Component? Code: service import {Injectable} from '@angular/core' import {HttpClient,HttpHeaders} from '@angular/common/http' import {Observable} from 'rxjs/Observable' import 'rxjs/add/operator/map'...
asked by 10.01.2018 / 15:42
2
answers

How to execute a function on one component and affect another component - Angular 6

I would like to know how I can through a component affect another component in the angle 6. These components are not parent and child. They are different. <app-navegacao></app-navegacao> <router-outlet></router-outlet>...
asked by 02.10.2018 / 20:02
1
answer

SlimSelect + Angular 6

Hello, this is the first time I use SlimSelect and I'm having trouble making it work. I created a test-only component called 'AddConta' and in its method 'ngOnInit ()', I put what the SlimSelect documentation requested. Exactly as the picture...
asked by 04.01.2019 / 01:44
1
answer

Angular: persist return of get in function / variable

booksList: Book[]; listById(id: number): Book{ this.http.get<Book>('${url}/list/id=${id}') .subscribe((response)=> { this.book = response; console.log(this.book); //aqui existe o livro...
asked by 27.12.2018 / 14:39
1
answer

When recording I get a bad request using angle 6

When I try to write to the database, I get a (400) bad request error, when I enter postman two fields of an object type returns an empty array ([ ). I'm sure that sending the data is wrong, but I'm not getting it right. The method is OnPostC...
asked by 24.07.2018 / 21:15