Questions tagged as 'angular'

1
answer

Select using Enum

I have a form where one of the fields is a select, and this select is an enum, I get it popular but I can not send the value, it always goes 0 when I do the post. I wanted a select with two options HTML: <form class="mat-dialog-content"...
asked by 03.01.2019 / 23:06
0
answers

can not ready property 'controls' of null when using formArray

I'm trying to use a reactive form that contains an array, however I'm getting:    Can not read property 'controls' of null I tried something like: TS formularioRegistro: FormGroup; contas_mp: FormArray; ngOnInit() { this...
asked by 19.12.2018 / 12:39
0
answers

Ionic Directive for numeric masks is not accessed from other pages

I created a project with Ionic with two pages: Login and registration. The structure is this Inboth,ItriedtoaddadirectivethatcreatesamaskforCNPJ.Followthepolicycodeimport{Directive,HostListener,Input}from'@angular/core';import{NG_VALUE_AC...
asked by 30.12.2018 / 02:22
0
answers

Calback not working Swipeout in Framework7

page comanda.html <div class="list"> <ul> <li class="swipeout deleted-callback"> <div class="item-content swipeout-content"> <div class="item-inner">...
asked by 17.12.2018 / 17:53
1
answer

Call method on another component Angular is giving error

Whenever I try to call a method from another Component in the Angular, it returns me an error. Below is my TypeScript code: Component1: metodoAlertar() { console.log('bls') } Component2: cpmn: Component1Component; construct...
asked by 17.12.2018 / 18:30
0
answers

IOS emulator in Webview (iframe) losing asp.net session

I have a problem with my project in Ionic, below follow the versions.    Ionic: 4.1.2   ASP.NET: 2.1.502 A little bit about my project ... It has a route in the application where it generates a Webview (iframe) where in tha...
asked by 17.12.2018 / 20:26
1
answer

How to organize enum in an Ionic project 3

I have a static message group for validating form fields. These messages are present throughout the application and so I would like to use some way to make them dynamic and organized within the framework. Today I have the group organized insi...
asked by 03.01.2019 / 19:03
0
answers

Separate methods from an Angular component 6

Hello everyone, I have a component with 1266 lines, due to its large volume of methods, I need to separate these methods to facilitate future maintenance, only problem is that I have local variables, and these methods mostly consume these variab...
asked by 14.12.2018 / 11:17
0
answers

I'm having trouble using ui.router from angularJS

Codefrommyindex-release.html        <title>DiaristaFácil</title><!--AngularJS--><scriptsrc="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.5/angular.min.js"></script> <!-- Routes --> <script src="//un...
asked by 13.12.2018 / 20:44
0
answers

How to organize forms messages in Ionic 3 project?

I'm having a question regarding the best way to organize my error messages within Ionic 3 using Angular 6. I created an array of messages inside my recovery-passwrod.ts: validation_messages = { 'cpf': [ { type: 'required', message: 'O C...
asked by 25.12.2018 / 20:56