Questions tagged as 'angular-6'

1
answer

Angular Treatment of JSON

I wonder if it is necessary to handle JSON to use the two-way databinding in HTML. I managed to read it without the treatment, but I do not know if this is the correct way. Follow the code: ngOnInit() { this.emissor = 'Luis Henrique'; t...
asked by 28.09.2018 / 00:36
1
answer

How to add localstorage in Typescript (Angular 6)

I have code in Typescript (angular 6) in which I for educational reasons, I want to know how to save several message variables with the following data in the cache: adicionarMensagem(preparacao: PreparacaoDeMensagem) { let mensagem...
asked by 28.09.2018 / 21:00
0
answers

Staff I need help, I can not make ngModel work in angle 6

Follow the error and just below the code: CadastroRestaurantComponent.html:6 ERROR TypeError: 'Cannot read property 'name' of undefined' at Object.eval [as updateDirectives] (CadastroRestaurantComponent.html:6) at Object.debugUpdateDir...
asked by 19.09.2018 / 03:10
0
answers

Option menu back to login

I'm trying to use the treeview of AdminLTE in the system menu, but every time I click the menu item it goes back to the login. For example: When I click Dashboard, Graph or Management, it returns to the login HTML treeview excerpt: &l...
asked by 21.09.2018 / 18:12
0
answers

Avoid application crash with catchError

I know that if I use the catchError pipe operator in my application I can avoid the 'break' of the application so when it comes back the service keeps on rooting .pipe( catchError( error => from([]) ) ); How do I use this operator...
asked by 20.09.2018 / 15:38
0
answers

Show graph in Angular 6

I'm following this tutorial to show a graph of non-angular fusionchart 6 But it's only showing this message: Cannot read property 'moduleObj' of undefined I made an import in the app.module import { FusionChartsModule } from 'angular...
asked by 17.09.2018 / 17:00
0
answers

Uncaught (in promise): Error: StaticInjectorError (AppModule) [options]

I have the following problem, I have a project that was in Angular 5 and was migrating to Angular 6 , after that, the problem below began to occur, someone give a help, please.     
asked by 14.08.2018 / 19:30
0
answers

Angular Integration 5/6 with Golden Layout

Someone has already integrated Angular with Golden Layout or some similar layout manager (which allows having the IDE effect, of clicking and dragging the containers of the components resizing the size). I need to build an application in this...
asked by 03.08.2018 / 19:34
0
answers

Observable, unresponsive

I would like to know why the observable is not responding correctly login.service.ts import { Injectable } from '@angular/core'; import { HttpClient, HttpEvent } from '@angular/common/http'; import { Observable, throwError } from 'rxjs'; im...
asked by 26.07.2018 / 01:06
0
answers

Return firebase values from a service to angular component 6

I'm creating an application with angle 6 and firebase using angularfire2, I chose to use the firestore where I have a collection called pages like in the image: I basically created a service - "PagesService" where I have a function that re...
asked by 24.07.2018 / 15:21