Questions tagged as 'angular-5'

1
answer

Angular 5, Map an array of Objects within another array of Objects

Well I'm trying to encapsulate my objects. The first object it maps to the first JSON array. export interface PraticarObject { id_assunto: number; nome_assunto: string; qt_exercicios_concluidos: string; conteudos: ConteudosPra...
asked by 27.06.2018 / 20:50
0
answers

Search for user by attribute no angularfire

I have an application on ionic with angularfire2 in version 5. How do I get the user's UID by email? Currently, my code looks like this: const usuariosRef = this.db.list('usuarios/uid', ref => ref.orderByChild('email').equalTo(this.email...
asked by 27.05.2018 / 14:26
1
answer

Click outside Angular 6

I updated my Angle from 4 to 6, and consequently I had a problem with my click outside policy, it stopped working on all the components. My policy: import { Directive, Output, EventEmitter, ElementRef, HostListener } from '@angular/core';...
asked by 25.05.2018 / 14:36
0
answers

Insert iframe with angular application

I have an angled application running on the same server as a wordpress site. This application is just a form, I would like to embed the angled form in an iframe on the wordpress site, but the form does not appear and gives the following error: R...
asked by 24.05.2018 / 16:38
0
answers

Bootstrap does not work on Angular V-6

I can not use Bootstrap on my page: I installed the 3% version with% on npm install --save bootstrap@3 I put the path: angular.json
asked by 17.05.2018 / 20:26
1
answer

Angular5 - Error: Local workspace file ('angular.json') could not be found

This error happens when I start the application:    Local workspace file ('angular.json') could not be found. Error: Local   workspace file ('angular.json') could not be found.       at WorkspaceLoader._getProjectWorkspaceFilePath (/usr/lib/n...
asked by 09.05.2018 / 16:54
0
answers

Ngx-Charts - XAxisTicksComponent.html: this.adjustedScale is not a function

I'm developing an application in Angular 5, where I make use of Ngx Charts. When I run the application, it gives me this error in the browser console: ERROR TypeError: this.adjustedScale is not a function at XAxisTicksComponent../src/common/ax...
asked by 19.04.2018 / 17:38
0
answers

Change data with Put in angle 5

Good evening! I'm new to programming and I'm not able to make a change to a content with the PUT, this code is inside service.ts import { Injectable } from "@angular/core"; import { HttpClient } from "@angular/common/http"; import "rxjs/add/...
asked by 23.04.2018 / 01:04
0
answers

How to save only those items that have been changed?

Goodafternoon,Ihaveadoubt,intheprograminquestionIamusingangular5andtypeScript,Ineedtofindawaytosendonlythefieldsthathavebeenchangedtothebackend(Theonlychangeablefieldinthetableisthe"Quantity"). The way it is today when I click save I send the e...
asked by 11.04.2018 / 19:30
0
answers

Correct way to pass headers to the HttpHeaders Object

I'm trying to figure out how to pass headers correctly when instantiating a HttpHeaders object in Angular 5 . I have the following code: postApi(body: any, route: string) { return new Promise((resolve, reject) => {...
asked by 25.03.2018 / 01:49