Questions tagged as 'angularjs-2.0'

3
answers

input component angular2

Do you know if you can get the data from the constructor that is obtained from the input component that define an 'id' ?, That is what I do is make a directive <contenido-images [id]="contenido.id"></contenido-images> that...
asked by 05.04.2017 / 22:55
2
answers

Problem with the observable route.queryParams

Good, what I try to do is pass 2 values within an array from one component to another, and receive them in the ngOnInit() function of the child component. The way I send them from component1 is as follows: HTML <button clas...
asked by 04.10.2017 / 16:03
1
answer

Angular 2 forbidden error 403

my question is this: -Because I receive error 403 in firebug when wanting to represent an image ?. The application is being made with MEAN Stack. getArtist(token, id: string){ let headers = new Headers({ 'Content-Type' : 'a...
asked by 24.07.2017 / 16:02
1
answer

Problems with CORS nodejs and Angular

I'm doing a webapp through the MEAN stack. The fact is that now I have developed a method to register objects in the database, but when I execute it, it is an error:    Response for preflight has invalid HTTP status code 404 I've been doi...
asked by 17.04.2017 / 12:47
1
answer

How to connect Angularjs2 with the server?

I am trying to make a connection of Angularjs2 with the server but I have not been able to, I will place the code of my file "app.ccomponent.ts" to give more explanation: import { Component } from '@angular/core'; import { OnInit } from '@angu...
asked by 07.08.2017 / 22:57
1
answer

Angular 2 cli ng build --prod

When executing any of these two commands ng build --prod ng serve --prod I get the following error. EXCEPTION: Uncaught (in promise): Error: Cannot find 'default' in 'app/home/home.module' Error: Cannot find 'default' i...
asked by 07.03.2017 / 09:55
1
answer

Angular 2.0, does not show me correct data when I delete

cuadro.component.ts I have a problem, I am trying to delete a data <ul> <li *ngFor="let user of users"> <p @heroState='user.state' (click)="user.toggleState()">{{user.name}}</p> <p...
asked by 26.07.2016 / 10:11
1
answer

Global Angular Information 2 TypeScript [closed]

You know how to obtain and use globally the following USER data in Angular 2 / Typescript: Time / Date Browser Operating System Device (Mobile - Tablet - Pc) Dimensions of the window Language Location
asked by 03.02.2017 / 21:32
2
answers

Error creating a new Angular project with Angular-Cli

Good I am trying to create a new project following the manual of Angular using Angular-Cli. I have installed Node 6.10.0 and npm 3.10.10 in Windows 10 first installed angular cli with the command: npm install -g @angular/cli que se completo si...
asked by 10.04.2017 / 09:36
1
answer

Convert Object to work with the Angular2

I'm working with Angular two with the following JSON: { "var_TempExt": [ { "attrName": "var_TempExt", "attrValue": "8", "recvTime": "2018-02-02T13:57:45.000Z" }, { "at...
asked by 02.02.2018 / 14:04