76 questions
1
vote
1
answer
73
views
I would like to iterate over a list of svg icons in angular using the *ngFor directive
Here is a list of svg icons in an array; I want to iterate through them in the template.
aboutTags = <AboutTags[]>([
{
title: "1 year of",
sub: "Professional ...
0
votes
1
answer
416
views
Any way to make knockout faster or is data binding fundamentally flawed?
I have recently adopted knockout for my projects as a technology to fully own and run for the next decade or so. I hate frameworks and libraries, so when I adopt something it is because I found that ...
0
votes
0
answers
122
views
Angular Date Binding on Form Off by One on Submit
I'm attempting to display a saved date on a form using an approach that is much like two-way binding for Angular using [ngModel], but not [(ngModel)] utilizing a solution I found on a similar stack ...
0
votes
0
answers
62
views
AngularJS: Load JSON data with bindings in place, doesn't keep any bindings
Say I attempt to store an object as plain text that features many model - view bindings with a rather simple function.
$http.post("storeJSON.php", {
data: {
data: JSON.stringify($...
0
votes
1
answer
63
views
Other methods of binding json blob element to img src in ng-repeat loop?
I have a json array which I am displaying in a table, like this:
<table><tr ng-repeat="field in databank.Fields">
<td>{{field.name}}<br />{{field.description}}</...
1
vote
1
answer
67
views
the results is repeated in knockout
when I use the || in data-bind, it repeats the results when both are true, but separately work fine,
I tried in many ways and all give me the same and when I use with === no results return and ...
-1
votes
2
answers
2k
views
Angular: Binding on ngIf inside ngFor
I am trying to populate a list with condition on each list-item, where the condition is changeable through user input.
For example:
app.component.ts
private check = true;
private some = [
{name:...
0
votes
2
answers
1k
views
VueJS data-bind object styling not working
I'm playing around in VueJS styling with v-bind, I noticed something particular, when I switch from v-bind inline styling to v-bind object styling. The inline style works fine. However, when I create ...
0
votes
0
answers
33
views
html binded variable to C#
I have a variable called "selectedAssignment" that is binded in the html, and I want to access it from C#.
right now what I am doing is:
<asp:HiddenField runat="server" ID="assignmentName" Value="...
0
votes
1
answer
420
views
Optimize ngFor in Ionic when page is loading too many data
currently I'm working on an Ionic page which get data from an API, roughly 50,000 items and save them in selectedItem (array). I have to list them all like this:
<ion-list class="main-item-...
0
votes
1
answer
737
views
Knockout binding fontawesome class
Exmaple of posted code
Hello,
I have a problem with binding CSS class of font-awesome into an tag.
HTML:
<div class="flex-no-shrink">
<div class="btn-group">
&...
1
vote
2
answers
1k
views
Knockout button click binding for changing text
I am very new to knockout.js. I was trying a feature where when a user clicks a button the value is changed. Its sort of like a on/off button. I am storing the value on the backend as true and false.
...
0
votes
2
answers
1k
views
JavaScript Vanilla Two Way Binding
I have found this very short yet handy two way binding code written in pure JavaScript. The data binding works fine, but what I want is to take the value from the first input and multiply it by a ...
0
votes
1
answer
250
views
How to bind the selection state of a button
I am trying to bind the selection state of button (selected or not selected) with aria-pressed or aria-checked property. But in none of the case sreen reader is announcing the value. I tried like:
1....
0
votes
1
answer
875
views
ng-options expression with key value
I was trying to achieve cascading drop downs based on country , state , city found from the below links that i had attached and i was confusing with the regular expression for ng-options using array'...
0
votes
1
answer
629
views
Polymer: Checkbox elements not being updated after changing the checked property
I am writing a sample program in polymer. I have a template as shown below:
<template is="dom-repeat">
<li class="clearfix title-container">
<input type="checkbox" ...
0
votes
1
answer
57
views
get no of records returned by query in jscript function
How I can get no of records returned by my query executed with in j script function? I am trying it as following but not getting where I am doing wrong.
function getExecutableSteps()
{
var pad ...
1
vote
1
answer
74
views
knockout:foreach with table columns inserts extra TR
A jsfiddle explains the problem. I want to use knockout:foreach to generate a list of column headers (<th> tags) for a table. But if you inspect the DOM, you can see that a <tr> is ...
0
votes
1
answer
56
views
Angular 2 Databinding why and how does it work
Good Morning from Germany,
first my code works like a charm and I´m happy about the awesome learning curve with Angular 2. I´m getting things faster done than any time before.
My problem is that I ...
0
votes
1
answer
103
views
SyntaxError: missing ) after argument list with 3 parameters
<a id='aApp' runat='server' title='Approve' onclick='return OpenAppWin("<%#Eval("ID1") %>",
"<%#Eval("ID2") %>","<%#Eval("NAME") %>")' class='label' href='#'>Approve</a>
...
0
votes
1
answer
1k
views
Two Way Binding Not Working in Angular 2
In my project I have used jQuery plugins(datepicker and iCheck) and probably will be using more plugins. I have managed to call jquery plugin methods from angular but angular 2 way data binding is not ...
0
votes
3
answers
697
views
Is there a way to assign a function and create ng-model dynamically?
Considering the below code, i am trying to construct ng-model dynamically with 2 different objects if it meets the uniqueAttribute condition.
<input type="text" class="form-control" ng-model="vm....
0
votes
1
answer
51
views
Problems with isolated scope and bindings
I try to build directive in which i want to change model on clicking by element. Some sort of checkbox...
Here is my code
mainApp.directive('subCategory', function(){
return{
restrict: 'A'...
1
vote
1
answer
927
views
Dojo changing scope of data dojo attach point
Can you specify/change the scope of a data-dojo-attach-point to something other than the current widget?
eg. I have a templated widget called parent. In that template I have another widget called ...
1
vote
0
answers
359
views
Angular2 - Two way databinding on each index of array
In my project a product can have multiple price lists. Each price list can contain different price of that particular product. When i edit a product i want to fetch all the prices of that product ...
1
vote
1
answer
2k
views
Change event is not triggering for JSONModel
I have model called resources i need to listen to the change event i have attached the binding as below
var resModel = this.getModel("resources");
var resBinding = new Binding(resModel, "resources>...
1
vote
1
answer
628
views
Binding to primitive value on controller
I am trying to bind to a boolean variable on my controller's scope to indicate whether or not a loading animation should be displayed. However, the following code does not work. The function inside $...
0
votes
0
answers
121
views
Dropdowns in AngularJS
I have angularjs interdependable dropdowns, here is a demo plunker: http://plnkr.co/edit/mIFCKKO5Azr4ljyoge5r?p=preview. Now when I select an option from first(country) dropdown, I want the second (...
0
votes
0
answers
33
views
Which data binding tags should be used in asp.net and javascript and jquery?
1.<%: > and
2.<%= > and
3.<%# > and
4.<%$ > and
5.<%! > .
5
votes
2
answers
6k
views
Can you use array.filter in an Angular binding?
I have this line in my template:
<span>{{ data.things.find(r => { return r.id == 5 }).description }}</span>
When I run this, I get the following error:
Parser Error: Bindings cannot ...
2
votes
1
answer
499
views
How to Handle Recursively Nested Components in RivetsJS?
I currently have a Model that is related back to itself in a parent-child relationship. I need to be able to display these in a tree-like structure on the page (i.e. Nested <li> items). Each <...
1
vote
1
answer
477
views
Polymer iron-ajax call and how to modify/filter the response before binding happens?
Polymer iron-ajax call and how to modify/filter the response before binding happens?
code wise is something like this:
<iron-ajax url="{{seturl}}" last-response="{{carts}}" auto on-response="...
4
votes
1
answer
2k
views
When to use or not use parentheses with observables in data-binding expressions
I have seen other threads on this but I'm still confused and I think I am presenting a different case here.
I'm using the revealing pattern to return a view model object to my HTML document. Thus, I ...
0
votes
1
answer
127
views
Bind list to multiple target divs in WinJS
I have list declared in js file like this (full list contain 6 items, but can be more or less than that)
var dataArray = [
{
type: "item", title: "Cliff",
picture: "../../images/...
1
vote
0
answers
207
views
How Can I bind dataSource to Webform Grid in $Ajax Function
I am working on existing webform application. I have strongly typed data list. Now I have dropdown in ASP.NET webform page, so when user choose item from dropdown list, ajax call WebMethod which will ...
1
vote
0
answers
941
views
How to display JS object property in HTML element and update HTML as soon as attribute/property changes
Currently I am writing an application that consists of hundreds of JS objects asynchronously being updated in the background. Multiple panels, created with iframes can be used to visualize the various ...
0
votes
1
answer
65
views
Proper dependecy tracking in a custom binding
What I'm trying to achieve is to visually filter table rows generated by the foreach binding in a way that tr elements of the rows that are filtered out would be hidden instead of removed from the DOM....
1
vote
1
answer
160
views
two side data binding javascript library usage for multiscreen application
I am a c# developer and I am writing kiosk applications. Our kiosks has two screens. One screen for customer and one screen for operator. Customer can input personal information from touch screen. I ...
0
votes
1
answer
723
views
What is the proper way in Node.js/Express framework to pass data to d3 for rendering graphical data
As it stands I have a jade file that I pass data from js files into. I then have the jade file require a js file that handles the d3 code.
I do not think this is the proper way to do this, but I do ...
1
vote
1
answer
99
views
Encoded character breaks Knockout js data bind on IE8
I'm having a very strange issue on IE8 (and only on IE version lower than 8). The problem is in attr binding, if I put encoded email string (with %26, %40 and etc.) the page won't render the data ...
0
votes
2
answers
441
views
Loading asynchronous parse data inside html using angularjs
I am trying a quick test to debug why some of my code isn't working as expected.
I have a controller named testCtrl and a service myService . In the service, I am trying to get data from Parse and ...
4
votes
2
answers
3k
views
How can I prevent Angular from re-sorting my list while editing?
I created a little application using Angular to manage Todolists. Each list has a number of todos. Each todo has attributes name, value1 and value2.
Each list should be sorted automatically by ...
13
votes
2
answers
2k
views
Two-way data binding to an ngReact component
Using ngReact, how does one elegantly set up a two-way data binding?
Let's say I have a simple React input component, which takes a value and fires onChange:
angular.module('app', []).value('...
0
votes
1
answer
511
views
Angular two way data binding greeting
Apologies for what is probably a very basic question. I'm making a little demo quiz project with angular. On the first page I have a basic two-way data binding greeting (i.e you enter your name in a ...
2
votes
2
answers
2k
views
HTML Select Form Variable Default Value
I am trying to set a default value for a HTML select form. I've read the posts on setting a constant default value for a select form. However, I want the default value to be the variable shirt.Color, ...
0
votes
1
answer
2k
views
RivetsJS - Dynamically bind an input to a list item
I'm using RivetsJS to create a dynamic list which will be editable via an input box, and use the two-way data binding to update the element...
The list code is:
<ul id="todo">
<li rv-each-...
3
votes
1
answer
6k
views
Creating new line using knockout text
I am creating SPA. I am using knockout and observable array to iterate json array. Sometimes i've got br tag inside text, and using data-bind="text: myVar" I would like to brek line. Problem is, br ...
0
votes
1
answer
1k
views
How to prevent HTML rendering when not visible data-binding
I have this code to show an alert banner if isBannerVisible is true. But if the value is false the banner still renders for a couple of seconds and then goes away. I have no idea how to prevent this ...
1
vote
0
answers
2k
views
ExtJs 5 bind store to cell editor in grid
I'm trying to bind store to combobox editor in grid. My view is subclass of grid with cellediting plugin. I'm trying to bind at least static store with yes/no option. I tried many options and nothing ...
1
vote
0
answers
582
views
Prevent setting selectedKeys to sap.m.MultiComboBox from triggering change event on intitialization
I have my MultiComboBox attached to a list of key value pairs.
When I bind my box to my data it works, and setting selected keys works, but unfortunately this triggers a change event.
Each change ...