Questions tagged as 'angular'

2
answers

Problem CORS in Angular 2 and PHP

I have a REST server for queries to a database running in PHP , which via GET can be consulted several data in JSON >. Previously there was a client on another server written in Javascript + JQuery , so I needed to use CORS to conne...
asked by 14.08.2017 / 17:17
3
answers

Scroll from one div to another div in angular

hello I have a button to which I want that when clicking on this scroll to a div that I have below <div class="barra_ver"> <input type="button" name="bajar" scrollTo="sectionB" > </div> the button is inside...
asked by 01.06.2018 / 18:18
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
2
answers

Delete a record from a table and this is automatically removed in Angular

I would like to know how I can do when I delete a record from a table that is automatically removed from that table, since when I delete I always have to reload the page to no longer see the record deleted in the table. My code ts: im...
asked by 05.12.2018 / 04:09
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
2
answers

CheckBox Angular 4 ngfor problem when selecting

I am designing a Modal with boostrap and inside it I have a checkBox list that is loaded by running an NGFOR. The problem is the following: At the time of selecting one of those elements all the checkboxes are selected, besides I do not have...
asked by 25.07.2018 / 13:12
1
answer

What is the difference between JIT and AOT in Angular

I have been investigating this issue but I still can not find a clear answer about the difference, that is to say I basically understand that they compile at different times and this improves the performance in AOT, with this it is enough to use...
asked by 10.08.2018 / 16:24
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
4
answers

Hide and show according to AngularJS status

I have two High and Low Buttons, I want that at the beginning when all are true you only see the Low button and if one is in FALSE see the High button <table class="table table-sm" ng-init="GetData()"> <thead> &...
asked by 26.10.2018 / 05:01
1
answer

Error trying to install "ngx-input-file" in Angular 6

I try to install the library ngx-input-file . npm install ngx-input-file --save I import the 2 libraries to app.module.ts like this: import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { InputFil...
asked by 06.10.2018 / 18:30