Questions tagged as 'angular4'

2
answers

Delete a record in angle 5 by passing the user_id?

I want to delete a record by passing the user id using httpclient my api from postman I pass the 1 as parameter and I delete the record but in angular nose this is my code import { Component, OnInit } from '@angular/core'; import { Http } from...
asked by 27.02.2018 / 16:24
1
answer

How is an observable in angular 5 implemented in the component itself?

aki is my code the laravel route returns all the data of a table import { Component, OnInit } from '@angular/core'; import { Http } from '@angular/http' import {Observable} from 'rxjs/Observable'; import 'rxjs/add/operator/map'; @Component({...
asked by 26.02.2018 / 23:03
1
answer

How to load image in angular 5?

<div *ngFor="let datos of archivo" class="card" style="width: 20rem;"> <img class="card-img-top" src="?????" alt="Card image cap"> <div class="card-body"> <h5 class="card-title">{{datos.titulo}}</h5> <p class="...
asked by 26.02.2018 / 19:04
1
answer

* ngIf if you find a value in an angular array 4

How can I do the ngIf with the condition that it shows the element if it finds an element in an array, be it a string or a string, I do not have anything on the internet I tried * nfIf="userModel.roles.find (x = > x.name == 'administrat...
asked by 11.03.2018 / 08:14
1
answer

How can I use the SHA512 encryption algorithm in angular?

I want to encrypt certain information when sending it to web service , but I can not find any clear answer to how to use the library SHA512 in angular. How do I use it from angular ?     
asked by 08.02.2018 / 16:42
1
answer

jquery steps does not work on angular 4

The problems with jquery steps with angular 4 is that it does not work for binding a field within jquery steps. that is to say in the component I have a variable called public borrar:string; then a method loadInfo() { this.borrar = "hola...
asked by 07.01.2018 / 17:13
3
answers

Get only the first element of an array with NgFor

I have an array of elements where I only want to bring the first one ( sale_price ), but in ngFor it brings all the sale_price . Code Angular : <*ngFor="let valor of equipo.equipment_details;">{{valor.sale_price}}&...
asked by 27.12.2017 / 21:13
1
answer

Error in ANGULAR form 5 in the title field?

It gives me an error in the field title in theory I have it well I put the form <form (ngSubmit)="crear(a)" #a="ngForm" class=""> <label for="exampleFormControlSelect1">User_id</label> <select class="form-control" id="exa...
asked by 02.03.2018 / 20:34
1
answer

How to pass token with angular 5 and httpclient?

I need to pass the token that comes to me from the database so that laravel lets me enter the content. Here I leave my code import { Component } from '@angular/core'; import {HttpClient} from '@angular/common/http'; import {SessionStorageS...
asked by 28.02.2018 / 12:02
1
answer

How to login at angle 5?

I'm trying to do it with httpclient but I do not get the goal this is my code import { Component } from '@angular/core'; import {HttpClient} from '@angular/common/http'; import {SessionStorageService} from 'ngx-webstorage'; import { Router } f...
asked by 27.02.2018 / 20:16