Questions tagged as 'angular'

0
answers

Two subscribes to the same function?

I have a function in Typescript in which its return is directed to an input in formGroup , but I can not use the same return in another field, only if it has the same name. I need to use the return in HTML table and I can not put...
asked by 13.06.2018 / 14:14
0
answers

I'm having trouble installing the Angular

ERROR message: npm ERR! code EPROTO npm ERR! errno EPROTO npm ERR! request to https://registry.npmjs.org/@angular%2fcli failed, reason: write EPROTO 1396583:error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol:../deps/openssl/...
asked by 06.06.2018 / 16:13
0
answers

I can not do Array (in JSON) in Typescript

Below is the Array I need [ { "id":1, "nome":"LESPAUL", "validade":1525568400000, "dataGerada":1525914000000, "status":true, "itens":[ { "cliente":{ "id":1,...
asked by 12.06.2018 / 01:33
0
answers

POST with AngularJS and Laravel

I'm trying to send via POST to my laravel backend, but on the console it points to the error:    POST link 500 (Internal Server Error)! ! Here's my AngularJS code <!DOCTYPE html> <html ng-app="myApp"> <head> &l...
asked by 31.05.2018 / 18:21
0
answers

How do you change only one array element of an object in firebase using ionic?

I have the following data structure { "carro" : { "-LDqO3v1IBcV2CC7MRhi" : { "donos" : [ { "key" : "-LDO7wjhNgyjGhjJ1_G4", "nome" : "wagner" } ], "modelo" : "ford ka" }, "-LDqO7G8d6HmZFVi3NKb" :...
asked by 31.05.2018 / 15:38
1
answer

Error when consuming angular api

Good afternoon. I am consuming an api (pokemon), But it does not work, PokeListenerComponent.html: 6 ERROR Error: Can not find a supporting object '[object Object]' of type 'object'. NgFor only supports binding to Iterables such as Arrays....
asked by 31.05.2018 / 20:23
1
answer

Check if a username already exists in angular database 2 + php

I need to check if a user already exists before registering. I have the following methods: register.component.ts: import { AlertService } from './../alert.service'; import { Component, OnInit } from '@angular/core'; import { Router } fro...
asked by 31.05.2018 / 22:14
3
answers

Angular 6 - NgFor only supports binding to Iterables such as Arrays [closed]

Error: Can not find a supporting object '[object Object]' of type 'object'. NgFor only supports binding to Iterables such as Arrays. I have model: import { Classroom } from "./classroom.model"; export class Student { public id...
asked by 31.05.2018 / 23:50
2
answers

Consume api - Angular

Good evening I'm consuming an api of movies on Angular. But I can not display in the template, in the console.log this is appearing right, but I can not pass the value pro template My component: import { Component, OnInit } from '@angular/c...
asked by 01.06.2018 / 00:31
0
answers

Error when querying API in Angular

Good morning, I'm trying to access my API by angular through the get of the http module, my files are in my github repository if someone wants to take a look. I'm following this tutorial here to make the request, but always gives the...
asked by 01.06.2018 / 18:38