Questions tagged as 'angular'

0
answers

Variable returning me undefined which is assigned inside subscribe [duplicate]

In the code below, the variable date is returning me undefined , now if I put console.log (this.data); inside of subscribe returns me with the correct value. import { Component, OnInit } from '@angular/core'; import {Http} from '@ang...
asked by 07.07.2017 / 14:47
0
answers

Plugin Cordova PayPal on Ionic using Real (BRL)

I installed the PayPal plugin in an Ionic application following this tutorial: link I created a SandBox account, I marked that the account is in "Brazil". The application works perfectly if I send, in the api, the currency "USD". But if I s...
asked by 07.07.2017 / 20:35
1
answer

Save form-data in webapi C #

I have the following code in Angular 2 for a post-form method: upload(event) { let files: FileList = event.target.files; let formData = new FormData(); for (let i = 0, f; f = files[i]; i++) { formData.append('atta...
asked by 10.07.2017 / 22:18
0
answers

SelectList paged in Angular2

I have the following HTML code for the list: <select data-placeholder="Origem" id="origemNew" (click)="SelecionaOrigem($event,oportunidadeNew.operacao,true)" class="chosen-select col-md-12"> <option value=""></option>...
asked by 18.07.2017 / 19:14
2
answers

"checked" of the "ion-radio" does not work

<ion-list radio-group style="margin-bottom:10px;" [(ngModel)]="orcamento.tipo" name="tipo" #tipo="ngModel"> <ion-item> <ion-label>Consumidor</ion-label> <ion-radio value="consumidor" checked="true"&...
asked by 13.07.2017 / 13:10
1
answer

Set the component / app Angular 2 in the body tag

I would like to set the <body> tag as the root of my Angular application 2 instead of creating a <my-app> (eg) child tag.     
asked by 17.06.2017 / 06:56
0
answers

Sequential execution

I am new to the world of angular and ionic. I have a main function that executes a command in the database if this command fails, it calls another function. So that's fine, except that the call function does not execute correctly, because inside...
asked by 16.06.2017 / 21:35
0
answers

Create form with Components in Angular 2

I'm starting with Angular 2 and I have a doubt, I believe simple, in creating forms: For example, on a system that contains the following entries: Customers Suppliers Carriers Each register will have its own fields and will also...
asked by 08.06.2017 / 22:35
0
answers

Generate multiple .js files with webpack

I need to create several .js files for each .ts file, but I do not know how to configure webpack 2 to do this. var path = require('path'); var ExtractTextPlugin = require('extract-text-webpack-plugin'); var webpack = require('webpack'); var ht...
asked by 07.06.2017 / 16:53
0
answers

How to optimize the loading time of an Ionic2 project? [closed]

I made an application with Ionic2 from scratch, defaulting to the "blank" project following the documentation. The project itself is running smoothly. But one thing that intrigues me a little is the loading time at application startup. Whi...
asked by 12.05.2017 / 20:08