Questions tagged as 'angular'

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

NgForm problem when inserting an input of type date, the entire form is deformed

Hello, I have the following form: <form #formulario="ngForm" action="" (ngSubmit)="insertarEmpleado()" ngForm> <div class="example-container"> <mat-form-field hintLabel=""> <input matInput #input maxle...
asked by 03.12.2018 / 12:42
1
answer

How can I setvalue a select options in Angular 7?

This is my html: <div class="col-lg-4 col-md-4 col-sm-12 mt-4"> <div class="form-group"> <select class="form-control" id="operator-groups" formControlName="operators">...
asked by 26.11.2018 / 15:36
1
answer

Problem Ionic Http Requests

I have my api rest done in nodejs (express) which is local link , my configuration of cors de my api rest it's const cors = require('cors') app.use(cors()); then in my ionic application when I start ionic serve -c in my browser on my pc...
asked by 19.11.2018 / 16:35
1
answer

pass component data to a service in angular 6

Hello friends, I have a doubt, it is possible to send data to service from one component and then from the service to send them to another component. in this code I have errors but in case what I would like is to pass the data array that is in t...
asked by 21.10.2018 / 21:58
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
1
answer

Role management in Angular 4+ routes (JWT)

I would like to know what is the best way to handle user roles in Angular? The scenario is as follows: I have an application in Angular that consumes a REST API made with Laravel, the same one that gives me a token. The application will handl...
asked by 08.08.2018 / 07:07
1
answer

How to create a custom directive - Angular 6

I created a custom directive in angular , and I want to share a value between my directive and my typescript file, this is an example of my 2 files: <!-- Mi html --> <div> <input type="radio" name="colors" (click)="color='...
asked by 01.08.2018 / 18:27
1
answer

Error in the datepicker with angular 6

I have the following warning in the angle compiler:    WARNING in ./src/css/datepicker.css   (./node_modules/raw-loader!./node_modules/postcss-loader/lib??embedded!./src/css/datepicker.css)                     (Emitted value instead of an ins...
asked by 01.08.2018 / 00:49
1
answer

error "Local workspace file ('angular.json') could not be found." when trying to run application in angular 2 with bootstrap

   I'm following the steps of this tutorial to implement   Angular 2 with bootstrap 4 in the. I had never before used bootstrap 4 with angle 2 and I used pure CSS3 from the css file. when I try to execute with the ng serve comm...
asked by 01.08.2018 / 01:26