Questions tagged [angular2-databinding]

1
vote
2answers
100 views

Angular 2+ One way data binding from view target to data source

In my angular application, I have a element that allows a user to set a description value. I want that value to be acceccable in the Data Source. I got this to work using 2-way data binding, as shown ...
1
vote
0answers
68 views

Data binding inside ngFor

I am working on a project, where I am getting questions from backend with multiple options. Now in one of question type - Multi choice grid question, we are trying to create view like thisfor that ...
0
votes
1answer
103 views

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 ...
0
votes
1answer
52 views

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 ...
0
votes
1answer
37 views

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):<app-ipe-artboard [...
0
votes
1answer
41 views

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

Instead of having the default <h1>{{typeScriptVar}}</h1> when binding elements in Angular, I want to set it to <h1>{{ typeScriptVar }}</h1> when I press the format code ...
1
vote
1answer
76 views

Angular Tutorial: Tour of Heroes lesson 2: data binding to hero from selectedHero

In Angular tutorial lesson 2 on https://embed.plnkr.co/?show=previewI can see in HeroComponent template, [(ngModel)] is 2-way binding the selectedHero.name as the input value changes. How come it's ...
0
votes
1answer
131 views

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 ...
2
votes
2answers
429 views

Angular - Is binding a component method to DOM target property a wrong practice?

Say, I have a component which is used as following:<health-renderer[health]="getHealth()"[label]="label"><health-renderer>After reading data-binding related parts from ...
0
votes
1answer
26 views

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

AngularJS APPI 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 ...
2
votes
1answer
308 views

How can I bind 2 variables inside 1 property binding in angular 2?

I'm trying to dynamically generate and use form controls from my json data. A simple experiment I came up with to figure out the mechanics I need to apply goes as follows.variables defined in class...
0
votes
1answer
295 views

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<div class="ui ...
0
votes
0answers
1k views

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 ...
1
vote
4answers
171 views

Why passing custom object in @Input doesn't work?

I am trying to pass a custom object through @Input. But, I'm getting null as output. This is my child component class: import { Component, OnInit, Input } from '@angular/core';...
0
votes
1answer
76 views

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'@...

153050per page
angop.ao, elkhabar.com, noa.al, afghanpaper.com, bbc.com, time.com, cdc.gov, nih.gov, xnxx.com, github.com,