Questions tagged as 'angular'

1
answer

Receive multiple inputs in html tag with Angular 2

In my app component, I am sending the following inputs to the html. How do I get all of them in html? export class AppComponent { nomeRedeSocial: string = "Minha Rede Social"; linhaDoTempo: string = "Linha do Tempo"; perfil: string = "Pe...
asked by 28.03.2017 / 11:04
3
answers

Change body 8px default margin in Angular 2

Good afternoon, I'm starting with Angular 2 and I'm having a problem removing the edges of the 8px body, I already tried to include it in the css margin: 0 body tag, but it did not work. Could you help me? Here is the body tag that is in m...
asked by 13.03.2017 / 16:06
1
answer

Change Angular Real Mask 2

I have a field with value formatted with currency 'BRL': true: '2.0-0'. The value it brings me is this way: R $ 500,000,000. I would like to know how I can leave it as follows: 500,000,000.     
asked by 22.03.2017 / 21:36
1
answer

Sum of select values entered in the input

I'm giving a practiced ionic 2, I'm building a basic app for this, with some interesting functions to study. I want the user to select two "ion-options" from two different ion-selects, these results (in numbers) are summed and shown in the "i...
asked by 11.05.2017 / 21:48
1
answer

How to use PNotify within angular

I have the following code and I want to use PNotify to give notifications when the user and / or password is incorrect or / and mandatory field is blank. How do I do? Remembering that I'm using ASP.NET MVC and have already referenced the PNotify...
asked by 16.03.2017 / 19:44
1
answer

Rest with Angular 2 [closed]

In recent weeks I have been training a lot in angular 2. However, some doubts have arisen in the course of these studies and I would like the help of you for those who know how to heal such doubts. Come on: Question # 1 - In my studies I have...
asked by 10.01.2017 / 03:56
1
answer

Ng build -prod Angular 2 - How to publish the application

After giving Ng build -prod it generates files for distribution, my question is the following how can I do this to publish on a PHP server or any other normal one, because when I try to get the files generated by javascript into putting them in...
asked by 17.01.2017 / 12:49
1
answer

How to clear or reset form with Angular2

How can I clear the fields of a form with Angular2? I need to reset the form I'm using the final version of angular 2 in my project     
asked by 22.09.2016 / 15:32
1
answer

Inject token in the header of all http requests

I'm trying to create a general method to insert a token into all my http requests. I do not understand much of angular 2 but I did it in the way below:    File generic-service.ts import {Http, Headers} from '@angular/http'; import {...
asked by 07.08.2016 / 04:02
1
answer

Component is printed 2 times in browser

Well guys, I'm developing an app with angular2 final version using routes. I created some files and then came across a route problem. My component Home is printed 2 times in the browser. IntheFirebugConsole: Follow the code...
asked by 21.09.2016 / 00:13