Skip to main content
Filter by
Sorted by
Tagged with
1 vote
1 answer
73 views

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 ...
muhumuza amb's user avatar
0 votes
1 answer
416 views

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 ...
Gunther Schadow's user avatar
0 votes
0 answers
122 views

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 ...
Peter Jessee's user avatar
0 votes
0 answers
62 views

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($...
Alejandro Jurado's user avatar
0 votes
1 answer
63 views

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}}</...
MangoCat's user avatar
1 vote
1 answer
67 views

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 ...
Bakr's user avatar
  • 11
-1 votes
2 answers
2k views

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:...
Gaurav Bhatt's user avatar
0 votes
2 answers
1k views

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 ...
Toni He's user avatar
  • 49
0 votes
0 answers
33 views

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="...
Inbaral's user avatar
  • 59
0 votes
1 answer
420 views

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-...
ken.ng's user avatar
  • 241
0 votes
1 answer
737 views

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"> &...
subKiller's user avatar
  • 168
1 vote
2 answers
1k views

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. ...
oneMoreDeveloper's user avatar
0 votes
2 answers
1k views

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 ...
Ahmad Karimi's user avatar
  • 1,391
0 votes
1 answer
250 views

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....
Sayantan Ghosh's user avatar
0 votes
1 answer
875 views

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'...
ramakri's user avatar
  • 201
0 votes
1 answer
629 views

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" ...
Kishan Kishore's user avatar
0 votes
1 answer
57 views

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 ...
sanjay's user avatar
  • 15
1 vote
1 answer
74 views

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 ...
Dan Tenenbaum's user avatar
0 votes
1 answer
56 views

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 ...
Doomenik's user avatar
  • 876
0 votes
1 answer
103 views

<a id='aApp' runat='server' title='Approve' onclick='return OpenAppWin("<%#Eval("ID1") %>", "<%#Eval("ID2") %>","<%#Eval("NAME") %>")' class='label' href='#'>Approve</a> ...
Saleem's user avatar
  • 3
0 votes
1 answer
1k views

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 ...
Bhuban Shrestha's user avatar
0 votes
3 answers
697 views

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....
Mithun Shreevatsa's user avatar
0 votes
1 answer
51 views

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'...
Adoratus's user avatar
1 vote
1 answer
927 views

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 ...
user7142947's user avatar
1 vote
0 answers
359 views

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 ...
usmanwalana's user avatar
  • 1,162
1 vote
1 answer
2k views

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>...
chiranjeevigk's user avatar
1 vote
1 answer
628 views

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 $...
Michael Billingham's user avatar
0 votes
0 answers
121 views

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 (...
Pranitha's user avatar
0 votes
0 answers
33 views

1.<%: > and 2.<%= > and 3.<%# > and 4.<%$ > and 5.<%! > .
Louis's user avatar
  • 43
5 votes
2 answers
6k views

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 ...
Des Horsley's user avatar
  • 1,888
2 votes
1 answer
499 views

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 <...
swatkins's user avatar
  • 13.6k
1 vote
1 answer
477 views

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="...
ittechie's user avatar
4 votes
1 answer
2k views

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 ...
Jazimov's user avatar
  • 13.4k
0 votes
1 answer
127 views

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/...
onedevteam.com's user avatar
1 vote
0 answers
207 views

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 ...
K.Z's user avatar
  • 5,093
1 vote
0 answers
941 views

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 ...
tlaloc's user avatar
  • 21
0 votes
1 answer
65 views

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....
Alexander Abakumov's user avatar
1 vote
1 answer
160 views

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 ...
Alptekin Topal's user avatar
0 votes
1 answer
723 views

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 ...
JediKid's user avatar
  • 83
1 vote
1 answer
99 views

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 ...
C_J's user avatar
  • 414
0 votes
2 answers
441 views

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 ...
Rohan Dalvi's user avatar
  • 1,265
4 votes
2 answers
3k views

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 ...
Timo Ernst's user avatar
  • 16.1k
13 votes
2 answers
2k views

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('...
P Varga's user avatar
  • 20.4k
0 votes
1 answer
511 views

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 ...
Mobeale's user avatar
  • 25
2 votes
2 answers
2k views

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, ...
Elaine Lin's user avatar
0 votes
1 answer
2k views

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-...
sigmaxf's user avatar
  • 8,562
3 votes
1 answer
6k views

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 ...
Shagohad's user avatar
  • 405
0 votes
1 answer
1k views

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 ...
Breana Wiggins's user avatar
1 vote
0 answers
2k views

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 ...
Yeti's user avatar
  • 21
1 vote
0 answers
582 views

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 ...
Daniël Camps's user avatar