Questions tagged as 'angular'

1
answer

How to recover variables sent by Angular in PHP?

I'm trying to send a data by getting from an Angular 5 service to an API in PHP. The way I send it is like this: public getMembers$(id): Observable<any> { return this.http.get(this.URL + 'read_records.php?id=1'); } The variable t...
asked by 23.06.2018 / 14:12
1
answer

Angular filter to pass HTML string

Hi, how can I do a angular filter, to read a string html , or how do I create a method to read a string html <div ng-bind-html="item.description"></div> why when I save text with he saves it but he show...
asked by 27.03.2018 / 18:57
1
answer

Pass an object with queryParams in the Router

I have an array of objects that I reccure with an ngFor. Later down I have a navigation bar in which I redirect to one or another component and I need to pass the selected object above. However, the most I get is to receive a literal "[Object ob...
asked by 04.05.2018 / 11:31
2
answers

How do I install angle 4?

I need to create a project in angle 4 but when I create it it does it with angle 5. How can I create the project in angle 4?     
asked by 25.04.2018 / 04:45
1
answer

Angular error WARNING: sanitizing unsafe style value display: none (see http://g.co/ng/security#xss)

Hi, I'm good at this and I have no idea how to make a form hidden but when you click on a button it shows that div that has display: none, try to set it in the class of .TS by putting the variable visibility display none and when clicking put di...
asked by 11.09.2018 / 09:57
1
answer

Error in staticinjectorerror (appmodule) Angular 5

Hi, I'm trying to add some directives to a form to be able to send them, but when I set the [(ngModel)]="tareaService.TareaSeleccionada.nombre" directive, I get this error. ERROR Error: StaticInjectorError(AppModule)[TareaService ->...
asked by 24.08.2018 / 17:04
1
answer

I can not run my app with ionic

I am new to the forum and in the ionic world, I started to get interested in the development of apps and it seemed like a good ionic option, make the installations as indicated on your page and when you give ionic serve it appears the nex...
asked by 13.10.2018 / 17:14
1
answer

Call method every so often ionic wordpress

I bring news from a wordpress, but I want to be able to update the news every so often, and it would be calling the builder who brings the news ... I show the code. import { Injectable } from '@angular/core'; export const WORDPRESS_URL = 'http...
asked by 25.05.2018 / 03:40
0
answers

Load a component dynamically in Angular?

Problem: I need to dynamically load a component in a modal but the modal at the same time accepts html, which if I put the ViewContainerRef I think I would only accept components and not only html Preview: I have tried several example codes a...
asked by 02.04.2018 / 22:47
2
answers

Can not bind to 'matDatePicker' since it is not a known property of 'input' [closed]

I'm having trouble including the angular material datepicker in my application. In my app.module.ts I import it like this: import { BrowserModule } from '@angular/platform-browser'; import { NgModule } from '@angular/core'; import { FormsMo...
asked by 25.04.2018 / 09:25