Questions tagged as 'angularjs-2.0'

0
answers

Save data using InMemoryBackendService in Angular 2

I'm trying to save data using this module from Angular 2 in-memory-users.ts export class InMemoryDataService { createDb() { let usuarios = [ { id: 5 , nombre: "juan" , nick: "kevinlll4" , email: "[email protected]"},...
asked by 24.07.2016 / 06:57
1
answer

Problem loading son component with angular material 2

I'm trying to load a child component which would only be a toolbar but I get error with material angle but if I load the toolbar from my appcomponent there is no problem but when I try to separate it I get this this is my app.component i...
asked by 08.07.2016 / 22:32
0
answers

Angular2 does not respect styles loaded from a [closed] component

I am new to Angular 2 and following the guide of the official page, in the "basics" section, the first part ( ngmodule ) gives an example in version 3 of how to upload a file css from the contact component. In his online example...
asked by 19.09.2016 / 15:21
1
answer

Can not bind to 'ngForFor' since it is not a known property of 'table-box'

I have a problem when wanting to generate an ngFor in Angular 2 That's the code I want to insert. import {Component , Input} from '@angular/core'; import {Tabla} from '../common/tabla'; @Component({ selector: 'table-box', templa...
asked by 08.05.2017 / 04:26
1
answer

Problem with returning an object from a factory in angular JS

Look, this is my code. Traer:function($scope) { $http({ method:'GET', url:'http://localhost:8080/VENTAS2017/serviciosPHP/Categoria/GETCATEGORIA.PHP' }).then(function successCallBack(response){ $scope.o...
asked by 29.06.2017 / 04:21
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
2
answers

How to pass a JSON to an Object?

Good Day My problems is I have this JSON {"status":"success","code":200,"data":[{"ID":70}]} That I got it from this function to make it clearer: this._service.getDato().subscribe( result => this.datosParaEditar(result.data...
asked by 12.10.2017 / 22:32
1
answer

Automatically submit "daughter routes". Angular 2

How can I make a "child" route run automatically? Let's see, I have a file of routes in which there are: const appRoutes = [ {path: 'home', component: HomeComponent}, {path: 'proyect-list', component: ProyectList, children:[...
asked by 11.10.2017 / 17:09