Questions tagged as 'angular'

2
answers

Add json object property

I have a json object and need to multiply the value vlr_produto with the function add() data={ id: 6, nome_produto: "Produto", vlr_produto: 16.98, qtd: 0 } add(data) { var mult = data.qtd++; mult * data.vl...
asked by 02.08.2018 / 12:35
1
answer

What is the usefulness of pipe () and map () functions in Angular 6?

I learned that I have to use both of these functions when I'm working with Http requests, I've learned that you have to use both of these functions as a cake recipe, which you use and ready, I wanted to know why you should use it. > Example of...
asked by 01.09.2018 / 17:19
1
answer

What is the difference between Angular 2 and Angular 4?

I would like to know in a simplified way, what are the differences between Angular 2 and Angular 4? And if possible, indications on study materials of the two.     
asked by 23.10.2017 / 16:16
1
answer

How to use moment.js with date coming from an input date?

I have the following form: <form name="formConsultaPeriodo"> Data Inicial <input class="form-control dataIni" type="date" name="dataIni" ng-model="consulta.dataInicial" required /> Data Final <input class="form-c...
asked by 03.04.2018 / 21:07
2
answers

How to change page in Ionic V2

Good morning guys, I have a doubt, as a beginner, that I created two pages on Ionic v2 but I do not know how I can navigate between them. Looking at the ionic documentation I saw this navController I adapted the code it gave but it did not work....
asked by 25.05.2017 / 21:52
2
answers

Angle installation 2

I have a website ready, it is static. I would like to install Angular 2 on it. I installed the angle from the command npm install @angular/cli and tried to put the html, css, jquery files in it but I'm not getting it. Can anyone explai...
asked by 27.03.2017 / 04:06
1
answer

How can I define an array inside my formgroup?

I have the following function that creates a form group: My ngOnInit: ngOnInit() { //Ao iniciar a tela deve carregar o formgroup padrão das variações this.variacaoForm = this.fb.group({ variacoes: this.fb.array([this.createF...
asked by 07.11.2018 / 19:22
2
answers

POST reply comes empty

service.ts: teste(user) { return this.http.post('api/home', user) } teste.component.ts: ok(user){ this.loginServ.teste(user) .subscribe(data => { let retorno = (data as any) console....
asked by 14.12.2018 / 19:53
1
answer

How to insert angular script? In simple HTML it works!

Well, my .html component looks like this: <script> window.onload = function () { var chart = new CanvasJS.Chart("chartContainer", { animationEnabled: true, title:{ text: "Monthly Expenses, 2016-17"...
asked by 12.09.2018 / 20:35
3
answers

Angular 6 date and time in Portuguese [closed]

Good afternoon, I'm starting to develop an application in Angular 6, and I need to display the date and time on the screen. I have already been able to present both, but they are in the American standard. How can I change to the Brazilian standa...
asked by 25.09.2018 / 21:03