Questions tagged [angular2-databinding]

55 questions
0
votes
1 answer

ion-datetime bind to epoch

I have a model that requires the date/time as milliseconds in Unix Epoch format. I have tried using the Moment interface, Date | numeric as type and I can't seem to get it right. I want the control to display in human readable format and the picker…
stephen
  • 385
  • 3
  • 24
0
votes
1 answer

Angular 5 Binding

I am new to angular 5 and I am working on a task to calculate number of cars based on number of bags and passengers as each car have a specific capacity for each of them. So the user enter the both numbers then I show a dropdown menu for choosing…
Bassem
  • 43
  • 2
  • 9
0
votes
1 answer

Angular component tag bind method

I am trying to set the width and height of a component alongside its initial declaration in a parent component's html. Having the following component tag (in the parent's html):
Youp Bernoulli
  • 5,303
  • 5
  • 39
  • 59
0
votes
1 answer

How to set spaces between binding tags in HTML code style in InteliJ for TypeScript elements?

Instead of having the default

{{typeScriptVar}}

when binding elements in Angular, I want to set it to

{{ typeScriptVar }}

when I press the format code shortcut in my InteliJ. Can you please help me, I did some research on this but…
0
votes
1 answer

Can an object be notified when a component object changes in Angular 2/4?

In Angular, a component can receive as @Input() a variable or object. Whenever the variable changes, Angular notifies the component. Very cool... I'm trying to build an app that shows a ng2-tree view on the left, and an edit-view on the right. …
John Arrowwood
  • 2,370
  • 2
  • 21
  • 32
0
votes
1 answer

AngularJS: Applying a function to 2-way data binding with a reroll button (reloadRoute??)

AngularJS APP I would like to understand how I can solve this issue of the infinite digest Loop, should I write a conditional? The objective is to use angular's 2-way data binding, but I need to modify the output to sort the letters randomly. My…
0
votes
1 answer

Angular textarea data binding

I am able to bind the data from a textarea on to the page whilst typing but how am I able to get the returns placed in the textarea? My current code is:- app.component.html
{{Form.value.address}}
Tony Hensler
  • 1,482
  • 5
  • 15
  • 30
0
votes
0 answers

Angular 4 view is not updating when model is changed

I have an Angular 4 component that retrieves data from a service and then updates a view. When my service retrieves the data and updates the component's property, the property does not update in the UI. I have tried using the NgZone and…
Mike
  • 1,718
  • 3
  • 30
  • 58
0
votes
1 answer

A object change to undefined?

product.service.ts: import { Injectable } from '@angular/core'; import { Http, Response } from '@angular/http'; import { Observable } from "rxjs/Observable"; import 'rxjs/add/operator/map' @Injectable() export class ProductService { private…
0
votes
0 answers

toggle checkbox Angular 2

Hi am using angular 2 data-table in my project. my tbody:
0
votes
1 answer

Angular4: data binding works only before initialization

I have a simple component with a property userFirstName. Now I just want to display this property. I have made a simple binding, and I initialize the userFirstName in the constructor but it works only when there it is the first command! So this…
Bakri Bitar
  • 1,543
  • 18
  • 29
0
votes
1 answer

Angular 2: Simple *ngFor not working

I have this in my app/component.ts import { Component } from '@angular/core'; @Component({ selector: 'app-root', template: `
  • {{ course }}
`, styleUrls:…
Char
  • 2,073
  • 8
  • 28
  • 45
0
votes
1 answer

How do I pass/save and push the input data to a web service in ionic 2/angular 2?

I am trying to create a comment form with ratings. In this form , i have added the way for users to rate the app and comment aswell. I am pretty new to angular 2 and kind of struggling how I can save this user entered data and/or push it to a custom…
user2386226
0
votes
4 answers

How exactly works the Angular 2 property binding? What really happens in this example?

I am an absolute beginner with Angular 2 and I have the following doubt relate property binding. This example works but I have doubt about what exactly happen under the hood. I have a component view (the servers.component.html file) containing this…
AndreaNobili
  • 40,955
  • 107
  • 324
  • 596
0
votes
2 answers

Why doesn't my data binding bind in Angular 2?

I am an Angular 2 newbie whose Google-Fu has failed him for three days now. This is going to be hard to explain, so I'll do my best. I have a class that looks like this: import { Component } from '@angular/core'; import { Brush, BrushService } from…
Nick Hodges
  • 16,902
  • 11
  • 68
  • 130