Questions tagged as 'angular-6'

0
answers

Angular 6 - Can Deactivate Guard not working

I'm having trouble making Can Deactivate work in my application. In the file form.component.html I have the following code: <div class="form-group"> <label for="quoteType">Quote Type</label> <select...
asked by 06.11.2018 / 17:49
0
answers

Grant Implicit with Angular 6

In my company, we work with OAuth. We have an application where there is a method that returns a token. I'm developing an Angular application that needs to get a token. But I need to make a request with the grant_type of type Implicit. I d...
asked by 31.10.2018 / 21:00
1
answer

Console error: Can not bind to 'formGroup' since it is not a known property of 'form'

I'm using Angular 6 and I'm creating a form: The form: <app-layout> <div class="card"> <div class="card-header"> Novo Post </div> <div class="card-body"> <form [formGroup]="form" (ngSubm...
asked by 09.11.2018 / 14:23
0
answers

Import an angled project into another angular project

I wonder if it's possible for me to import an entire angled project into another project, eg let's say I have a financial project and a stock project both ready and working but in separate projects, and now I'd like to create a new one project t...
asked by 07.11.2018 / 20:49
1
answer

Update component / object Angular 6

I have 3 components that exchange an object with each other, how do I when to update one another also update alone? Example: I have components 1, 2 and 3, 1 calls 2 by passing an object and 2 calls 3 by passing the same object, all this in th...
asked by 24.10.2018 / 19:31
0
answers

Angular datapicker 6

Hello, I need a DataPiker in Angular, where this datapicker will only present the valid dates between 'today' and the next 30 days. That is, this datapiker could NOT leave me enabled the days before the current day, and would have to leave en...
asked by 29.10.2018 / 13:52
1
answer

ngFor generating many calls

I have an array that contains 40 positions. When doing a ngFor using this array, I create a series of components within that * ngFor. The problem is that it's putting an end to the performance. Debugging, and doing a counter within that, I found...
asked by 17.10.2018 / 21:56
1
answer

Inference dependency injection in Typescript - Angular 6

I'm doing the front end of a project using Angular 6, however I'm new to both Angular and Typescript and I'm trying to use the Typescript interfaces as in Java, injecting them to use the methods and tals, the problem is the following: * I hav...
asked by 19.10.2018 / 20:44
0
answers

Adding data to the JSON file in Angular 6

I have a code that sends and receives messages. Can I read a local JSON file With this code in ngOnInit I can read what is inside the JSON file and turn it into a message that is displayed on the screen: ngOnInit() { this.emissor = 'Luis...
asked by 27.09.2018 / 18:35
1
answer

Doubt routerLink and route.navigate (route I want)?

When I use routerLink , does the target page run the commands within ngOnInit() and when I use this.route.navigate([<rota de acesso>]) does not execute? I would like to know if you have this.route.navigate() a...
asked by 29.09.2018 / 23:11