Questions tagged as 'angular'

1
answer

Update content by changing the parameter of the URL with routerLink in Angular 7

I'm working with Angular 7 and when changing the URL parameter I do not update the content because it does not reload the constructor or the ngOnInit, all the URLs call the same components for example CategoryComponent but depending on the param...
asked by 27.12.2018 / 14:17
2
answers

Angular2 ViewChild does not reference child elements within a ngIf

I have the following problem in a component, I need to access a child element within the component but this being within a *ngIf when the component is initialized gives me an invalid reference or undefined as I can solve this probl...
asked by 13.04.2018 / 17:12
2
answers

Error to access facebook with ionic 3

Someone can help me with this problem I am trying to connect to your Facebook of the user with Ionic 3 . I have this error    Facebook error: SERVER_ERROR: [code] 1675030 [message]: Error when   make the query. [extra]: null   ...
asked by 12.10.2018 / 00:37
1
answer

As I declare an attribute of type Date in Typescript (Angular 6)

I am using NodeJS + Angular6 to make a web application and I have a model called "Employee". My problem is that I have a file called "empleadoModel.ts" that has the code: //Importamos el archivo que necesitamos import { tipoEmpleadoModel } fro...
asked by 19.09.2018 / 03:52
1
answer

Modify value of html attributes with angular2

I want to change the value of the attributes according to the index but the page remains blank <div *ngIf="detallePost"> <div id="accordion" class="container"> <h2>{{ detallePost.title | uppercase }}</h2>...
asked by 10.04.2018 / 09:08
2
answers

Print field of an array in Angular

I have a function in Angular that brings an array with user data, among which one field is user.type_identity_id, and I have another function where I bring the types of identities, how can I compare and according to the user.type_identity_id pri...
asked by 10.04.2018 / 16:55
1
answer

When to use the tag # in an input text?

I've seen that in angle 2 instead of using ngModel I can put something like this: <input type="text" name="txtnombre" #Nombre /> <button (click) = "validarNombre(#Nombre)" > Validar </ button> I can not understand well whe...
asked by 17.04.2018 / 15:05
1
answer

Select a different version of angular when generating new project with angular cli

It may be a silly question, but the fact is that when generating a new project of angle with ng new miproyecto , version 6 of angular is installed by default. Can I choose which version to use, for example if I want to install version 4...
asked by 07.12.2018 / 20:13
1
answer

response from nodejs does not match the result of the ajax request using formidable

Hi, I'm uploading a file to nodejs with the formidable module and everything is fine, the file is saved in the directory I have indicated and such, but the response I receive on the page tells me that has not been found no file to upload but...
asked by 17.12.2018 / 11:45
1
answer

Integer to Date - Angular

I have a question, in PHP I can convert a whole number to date, in the following way: echo date("Y-m-d H:i",'1544102153'); and return: 2018-12-06 14:15 How can I do this in Angular? I've tried with: {{'1544102153' | date:'dd/MM/yyyy(...
asked by 12.12.2018 / 13:05