Questions tagged as 'angular'

0
answers

TreeNode - Typescript: How to remove a node from a tree?

Good evening, Can anyone give me a hint on how to remove a node from a TreeNode object? I'm using the tree component of PrimeNG . Below is a small part of my code (incomplete). Thank you in advance! import {TreeModule} from 'primeng/tree';...
asked by 08.02.2018 / 02:55
0
answers

How to create a TypeScript @Relationship decorator for a property?

Consider the following code: export class Model { constructor(input: any) { this.deserialize(input); } deserialize(input: any): Model { Object.assign(this, input); return this; } } export class Body ex...
asked by 10.02.2018 / 18:23
0
answers

Problem in saving states according to cities in Angular 4

When selecting the state it is loading perfectly the cities according to state the problem is at the time of saving it it exchanges the information, I need help to correct the algorithm, I believe it is simple thing. I think the problem is he...
asked by 08.02.2018 / 19:45
1
answer

It is possible to return an Observableboolean from the get request

I need to check if the api is active. Basically I am trying to check if the request status is equal to 0; if it is, I know that the api is off the air. But I wanted to put this method in my service class and only return true or false to whoev...
asked by 12.02.2018 / 21:52
0
answers

ANGULAR 4 - How to call a component in another, so that the page does not reload?

I have a certain problem, I would like to know the following: I have a product listing screen, for example, and I would like that when clicking on a register button, a modal appears on the screen with all the necessary form for the register. It...
asked by 12.02.2018 / 14:11
1
answer

Problems implementing dropdown list Cascade with Angular 4?

As the title says, I'm having trouble implementing the Dropdown Cascade, it's about loading the first Dropdown with the state and the second Dropdown will automatically load according to the state selected in the first Dropdown. Look at the t...
asked by 06.02.2018 / 12:03
1
answer

Create reports in Angular and Firebase

What to use to create reports with Angular and Firebase? I have an application in the health area with Angular and Firebase, I'm getting in the reporting part of the system and would like alternatives in creating reports. Reports should:...
asked by 06.02.2018 / 13:33
0
answers

How to work with ComboBox dependent on Angular?

This is the service file: import { Estado, Cidade } from './../../core/model'; import { CidadesService } from './../cidades.service'; import { Component, OnInit } from '@angular/core'; import 'rxjs/add/operator/map'; import { Observable } from...
asked by 05.02.2018 / 13:45
0
answers

Error Property 'collection' does not exist on type 'Profile'

The following variable has been declared in the script: private profile: Profile; See that it is a variable of type Profile . When trying to assign a value to the variable, it returns the following error:    Property 'collection...
asked by 09.02.2018 / 05:08
0
answers

Execute a class function based on a property

Please, I need to execute a function of a class among several classes that only know which one is correct from the value of one of its properties. I create classes for example: public tabelaSerie = new clsTabela('Serie'); public tabelaAlu...
asked by 10.02.2018 / 15:37