Questions tagged as 'angular'

1
answer

Angled responsive design 2+

Is it possible through angle 2+ to achieve the size and width of the browser and from that, send that data to the css so that it is responsive? Is there any other way to leave responsive without half queries? I know there is the following dec...
asked by 25.06.2018 / 14:00
1
answer

Request arrives null in C #

I have a request that is being made this way in angle 5. enviarEmail(titulo: TitulosCobranca, unidade: UnidadeEmpresa) { let param: any = { titulo: titulo, unidade: unidade } return this.http.post(this.UrlService + '/T...
asked by 18.05.2018 / 13:59
1
answer

assign value to the angular input 2

I have an object coming from the bank that I show in the view in a ngFor. I want to pass this value to the save component in the database and I'm not sure how. <form #f="ngForm"> <div *ngFor="let item of dados"> &l...
asked by 30.09.2017 / 16:19
2
answers

How to publish a CLI (Angular 4) Angular project on my server?

I am learning Angular CLI and I was able to make an application run the application in localhost of ng serves. However, I wanted to put this application on my website hosted on Hostinger , just to test and etc. So I went to play...
asked by 24.05.2017 / 05:09
1
answer

Navigation by Id Ionic 2

Hello. I'm developing an application with ionic 2 and I have the following situation. I have 2 tables, 'stores' and 'publications'. My question is, how do you go to the 'store' listing to open each publication, according to the name of eac...
asked by 29.08.2017 / 00:16
1
answer

accessing class data in a global scope with typescript

I'm developing an app in Angular 2 and I'm using the Youtube API. The Youtube API requires that I implement some functions in the global scope, so I did the following: export class MyClass { dados: any; constructor( ... ) { ... }...
asked by 21.03.2017 / 21:19
0
answers

How to return a Promise from an AngularFireObject using @ angular / fire in Angular (v6 +)

Hello, I'm working on an Angular project where I need to return a Promise on a given service. My code looks like this: import { Injectable } from '@angular/core'; import { AngularFireDatabase } from '@angular/fire/database'; @Injectable...
asked by 30.10.2018 / 14:43
1
answer

How to make a recursive sum in a JSON object in Angular 6?

Using Angular 6, how could you fill in the total field that represents the total number of direct and indirect bosses of each employee? I have the following data: const employees = [ { id: 1, firstName: 'a',...
asked by 07.06.2018 / 20:23
2
answers

Request JSON (http post) with Angular 2+

I am trying to consume an api in the braspag sandbox and am getting an error message: XMLHttpRequest can not load link . Response to preflight request does not pass access control check: In 'Access-Control-Allow-Origin' header is present on the...
asked by 02.05.2017 / 21:48
0
answers

How to make a collapse in Ionic?

I'm trying to do a Collapse and it looks like this: HTML <ion-content>     {{topicos.name}} <ion-item *ngFor="let aulas of topicos.get_classes" [hidden]="deixainvisivel" menuClose ion-item (click)="openClass(aulas.id)">{{au...
asked by 23.05.2017 / 19:24