Questions tagged as 'angular5'

0
answers

Execute typescript functions in a certain order (Angular & DjangoRest)

I am new with Angular and I am trying to execute certain functions in a specific order to be able to present them in the html.component. I have the following model: What I need is to get the levels, both "Competence" and "Result" .....
asked by 15.12.2018 / 17:38
1
answer

Show option bootstrap [duplicated]

With this code I get the first ngfor options and I do not know how to show the first options first by default. How could he do it? By default I get the ngFor options and I want the first option. <div class="form-group"> <label fo...
asked by 12.12.2018 / 15:35
1
answer

InnerHTML angular 5 does not respect width

I'm painting the response of a service inside a modal with innerHTML. But this is not respecting the width of the modal itself and is writing in the same line to infinity. The modal is a bootstrap ngbModal link Has anyone had to deal wit...
asked by 10.12.2018 / 18:00
0
answers

Error in the external response?

I want to make a request to an external URL. The response you send is a string separated by "|" Ejmple: "una | ves". My code of the method of my service: getDatosPersonaFromReniec(numerDni: string) { let nombreApellido; /*$.ajax({...
asked by 08.12.2018 / 16:43
0
answers

Angular Firebase go through firestore in 2 different collections

this question is quite complicated, I'm doing an app of chats in angular with different collections in firestore, I have a collection for chats, which goes first the name, then the info, as shown here: And then another collection with trend...
asked by 07.12.2018 / 01:42
1
answer

Pass a variable between components | Angular 7

I have an application that shows some categories for example the url of 1 category would be like that and the components would be CategoryComponent ... miweb.com/patienetes / and I want that when you press a product from the category page...
asked by 02.01.2019 / 17:07
2
answers

How can I show the clientName in the formbuilder?

export class UpdateUserComponent { registerForm: FormGroup; public users:Array<User> = []; public clientName: string; public password: string; constructor( private formBuilder: FormBuilder, private _userServic...
asked by 22.11.2018 / 17:19
1
answer

TypeError: undefined is not an object (evaluating 'result [0] .geometry')

Hello I'm trying to get the latitude and longitug in angular and be saved in firebase give me this error My code is:    import {Component, OnInit} from '@ angular / core';   import {PlacesService} from '../services/ places.service';...
asked by 31.10.2018 / 04:20
1
answer

Communication between components shown in different views Angular 5

I am trying to make communication between one component and another, which are in different views. In the first component there is an input, and what I want to do is that when the send button is pressed with a written text, a new view is accesse...
asked by 28.06.2018 / 10:21
0
answers

How can I change the name of my daughter routes in angular

I have the following problem, in my route component I have the following code import { NgModule } from '@angular/core'; import { Routes, RouterModule } from '@angular/router'; import { LoginComponent } from './login/login.component'; import...
asked by 20.10.2018 / 20:15