I'm having trouble getting a request with angular the backend is returning right but I'm not able to put the variable in html.
app.compoonent.ts
import { Component } from '@angular/core';
import { CanLoad, Route } from '@angular/router'
imp...
I'm trying to group an array of objects coming from the database in the following format:
[
{
'12312312': { 'first_name': 'David', 'id_question': 0, 'acertou': 1 },
'23423423': { 'first_name': 'Luis', 'id_question':...
I want to get information like the menu for a different route, for example, the "Mkt Place" client is not seen as "Seller" customer options, provided by the menu when the user enters the mktplace or 'seller' login "depending on the choice
<...
In Angular 4, how do I access the functions of the parent being in the child or the functions of the child being in the parent directly by the Typescript instead of traditionally accessing via tag attribute?
I'm having an error asking to add the annotation @NgModule. But I believe this is okay. follows error:
Uncaught Error: Unexpected value 'Http' imported by the module 'AppModule'. Please add a @NgModule annotation.
at syntaxError (compiler....
Error adding lazy loading
Any help is welcome because I'm new to the angle.
Do I need to set up any files for this to work?
app.module.ts
import { BrowserModule } from '@angular/platform-browser';
import { NgModule, LOCALE_ID }...
Good morning, I need to connect to a service that requires authentication by passing some headers, most of all ways I tried, does not send my custom header, here is the code below:
public listarCategorias(): Observable<category[]> {...
I am trying to transform an array with strings inside in lowercase using toLowerCase, but it seems that it does not work with an array and only with a string ... How do I solve this?
items: Array<{tag: string[], image: string, page}>;
t...
I'm trying to make a request with angular5 for learning purposes and I'm not with you, follow the console log and the source code.
ERROR Error: Uncaught (in promise): Error: StaticInjectorError[InvestimentosService]:
StaticInjectorError[Inv...