Questions tagged as 'angular5'

1
answer

Print what is in a CANVAS HTML tag

I'm trying to print the content of a% HTML% tag, so everything goes perfectly, so what I'm doing through the div library is that you can write a text and add an image as shown below: CONTENT IMAGE But, when trying to print the...
asked by 29.06.2018 / 16:49
4
answers

How to put a Fontawesome icon on a DataTable button? - Angular

I'm used angular-fontawesome and datatables and I want to create a button in the table, but instead of text I want to place an icon using fontawesome . I have the following code: this.dtOptions = { //... buttons: [ //......
asked by 04.05.2018 / 19:04
1
answer

error when trying to run a notification with ng-snotify

Using this library Execute the command:    npm install ng-snotify Add the css to angular.json :    "node_modules / ng-snotify / styles / material.css", My app.module.ts : - Import it like this:    import {Snotif...
asked by 28.09.2018 / 23:52
1
answer

Why can not I print the result of a query in angle 6?

My code is as follows: getReport(id_reporte: string, destino: number, departamento: string, afiliacion: string, tipo_servicio: string, canal: string, fechai: string, fechaf: string, por: string): Observable <Afiliados[]> {...
asked by 06.08.2018 / 17:16
1
answer

Error using services and HttpClient with observables

I want to use services and HttpClient with observables, when using HttpClient without service everything works very well but when I pass it as a service I could not manage to use it. Investigating I read that I should use observ...
asked by 22.02.2018 / 15:26
3
answers

call a javascript function in angular

import { Component, OnInit,Input,OnChanges} from '@angular/core'; import { NgForm } from '@angular/forms'; import {objClass} from '../ObjClass'; import * as convert from 'xml-js'; @Component({ selector: 'app-wsdl',...
asked by 19.07.2018 / 23:12
1
answer

How to load the variable with a new data by clicking angular 6

I am trying to make that when the button to create the component is pressed, change the variable, or load the new title that is shown through the variable "gestion", which I want to show ... it seems that it does but when it loads the content of...
asked by 30.08.2018 / 15:45
1
answer

Listen to Restfull API consumer data updates from Angular 5

I am new to Angular, to explain myself properly I will share an example. When we have installed the Firebase library in our project, we can call the information in the Users table as follows: constructor(db:AngularFirestore){ db.collection(...
asked by 11.09.2018 / 05:19
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
1
answer

Collections within documents in firebase and angular 7

I have the following code to obtain two observables in one and be able to manipulate them. public products: any; ngOnInit() { this.products = this.productService.products().snapshotChanges().map(productSnaps => { return...
asked by 24.11.2018 / 23:54