Questions tagged as 'angular6'

1
answer

How do I close a modal with bootstrap 4 in Angular?

Using - > this library < < - : Example of my modal : <ng-template #content let-modal> <div class="modal-header"> <h4 class="modal-title" id="modal-basic-title">Crear</h4> <button type="bu...
asked by 21.09.2018 / 21:50
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
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
2
answers

How to insert "ngx-input-file" with "formControlName"?

With the library ngx-input-file I insert a field of type files for several images, this works correctly, the problem is when I add the formControlName tag, the option to insert images disappears. My HTML : <input-file fileAccept...
asked by 06.10.2018 / 21:52
1
answer

How do I make the browser scroll to fit a modal?

The modal I do with mdbootstrap . My Html: <!-- crear --> <button class="btn btn-primary waves-light" (click)="crearAbrir2()" mdbWavesEffect> <span class="fa fa-plus d-inline-block"></span> <...
asked by 06.10.2018 / 16:55
2
answers

Capture an attribute of a JSON in Angular2 - TypeScript

I have a JSON that is sent to me as an external service from this url. link I capture these data in my angle as follows: I define my file named Base64.ts that defines the shape of my data export interface Base64{ "userId":number;...
asked by 17.10.2018 / 19:05
1
answer

Error importing "Injectable" from Angular

File color.service.ts : import { Injectable } from '@angular/core'; import { HttpClient, HttpClientModule } from '@angular/common/http'; import { HttpModule } from '@angular/http'; import { GLOBAL } from '../services/global'; @Injectable()...
asked by 04.10.2018 / 18:22
1
answer

Error in dataTables in Server side mode in Angular

Following this guide . categoria.component.html <table datatable [dtOptions]="dtOptions" class="row-border hover"> <thead> <tr> <th>ID</th> <th>First name</th>...
asked by 18.09.2018 / 17:27
1
answer

Error iterating over array with ngFor

I try to iterate an array using the following *ngFor="let item of items" , knowing that ngFor is used to iterate over arrays of several arrays, if I make a query because it returns me for example: the subjects a student has enrolled, knowi...
asked by 04.12.2018 / 06:37
1
answer

Change image play to pause of an audio player with angular 6

I have made an audio player that contains a Play button and a drop-down made with a switch. Well, the player works and if you press play, it plays the song and if you give it back to the button, the song stops. My problem is that I can not modif...
asked by 21.11.2018 / 13:23