Related
Sergio I have a navbar component with a simulated login that brings me the user email from the modal, but when I send a property to my signinmenu component, the email is showing as undefined. I also sent a logout function which works but the string email shows
Sergio I have a navbar component with a simulated login that brings me the user email from the modal, but when I send a property to my signinmenu component, the email is showing as undefined. I also sent a logout function which works but the string email shows
quick shift I am trying to create a radio group in Knockout JS, here is the template code <p>Selected Plan <div data-bind="text: selectedPlan"></div></p>
<div data-bind="foreach: plans">
<label>
<input type="radio" name="plan" data-bind="attr: {val
quick shift I am trying to create a radio group in Knockout JS, here is the template code <p>Selected Plan <div data-bind="text: selectedPlan"></div></p>
<div data-bind="foreach: plans">
<label>
<input type="radio" name="plan" data-bind="attr: {val
Ian Reunion, I'm trying to validate a very large form and basically rewrote all of my viewModel code so that it can be validated. The problem is that ko.validatedObservable() doesn't seem to exist for some reason. I've used the code from this site but honestly
Mathias Mamsch I'm designing a "medium" sized app in KnockoutJS and I'd like to know how to send events between components. Imagine a nested component hierarchy in KnockoutJS: Root Viewmodel -> A -> B -> C
-> D
How does D respond to the message
Mathias Mamsch I'm designing a "medium" sized app in KnockoutJS and I'd like to know how to send events between components. Imagine a nested component hierarchy in KnockoutJS: Root Viewmodel -> A -> B -> C
-> D
How does D respond to the message
safe I have a parameter in my mvc view as @{
var myparam = false;
}
My button is the same as the following view: <input type="button" id="myButton" value="Click" class="btn btn-primary"
data-bind='enable: selectvalue() != ""' />
In my button's data bi
marion I'm starting with components, but I'm trying to use this simple code. When I put a breakpoint in the function viewModel(params), the object params.datais my viewmodel viewModelHelloWorldand I want it to be an item of my array. What am I doing wrong? HTM
marion I'm starting with components, but I'm trying to use this simple code. When I put a breakpoint in the function viewModel(params), the object params.datais my viewmodel viewModelHelloWorldand I want it to be an item of my array. What am I doing wrong? HTM
marion I'm starting with components, but I'm trying to use this simple code. When I put a breakpoint in the function viewModel(params), the object params.datais my viewmodel viewModelHelloWorldand I want it to be an item of my array. What am I doing wrong? HTM
marion I'm starting with components, but I'm trying to use this simple code. When I put a breakpoint in the function viewModel(params), the object params.datais my viewmodel viewModelHelloWorldand I want it to be an item of my array. What am I doing wrong? HTM
marion I'm starting with components, but I'm trying to use this simple code. When I put a breakpoint in the function viewModel(params), the object params.datais my viewmodel viewModelHelloWorldand I want it to be an item of my array. What am I doing wrong? HTM
marion I'm starting with components, but I'm trying to use this simple code. When I put a breakpoint in the function viewModel(params), the object params.datais my viewmodel viewModelHelloWorldand I want it to be an item of my array. What am I doing wrong? HTM
marion I'm starting with components, but I'm trying to use this simple code. When I put a breakpoint in the function viewModel(params), the object params.datais my viewmodel viewModelHelloWorldand I want it to be an item of my array. What am I doing wrong? HTM
marion I'm starting with components, but I'm trying to use this simple code. When I put a breakpoint in the function viewModel(params), the object params.datais my viewmodel viewModelHelloWorldand I want it to be an item of my array. What am I doing wrong? HTM
The internet So consider the following: addExternalLibrary: function(name, url) {
_externalLibraries[name] = url;
_librariesToLoad.push(name);
},
setUpRequireJS: function() {
define('jquery', [], function() {
return jQuery;
});
requirejs.co
User 373455 I have a problem with the following code crashing self.DivisionRuleList.push(div);
I get the following error: Uncaught TypeError: undefined is not a function
The list should be initialized because I'm using the same list in another dropdown (rend
UserEsp I have 2 dropdown lists and a result list bound with a computed observable function like this: self.Records = ko.computed(function() {
if (self.dropdown1 !== undefined) {
...
return Collection[0];
UserEsp I have 2 dropdown lists and a result list bound with a computed observable function like this: self.Records = ko.computed(function() {
if (self.dropdown1 !== undefined) {
...
return Collection[0];
Steve Johnstone I'm using a knockout component (loaded via require.js) to create a login widget. Javascript: ko.components.register('login-widget', {
viewModel: { require: '/components/login-widget.js' },
template: { require: 'text!/components/login-wi
trunk I have a 2d observable array called textFields: var t1 = ko.observableArray([{val: 0}, {val:0}])
self.textFields = ko.observableArray([t1]);
I have a function called Solve that should take one parameter: self.solve = function(arr){
console.log(arr);
}
Arden Latraca I've tried implementing ksb on my knockout js, but it's causing an error when passing parameters in the onClick binding. I used this line: <button type="button" data-bind="click: btnClick.bind($data, '1')">button</button>
It will throw an error:
Coty I have a component that binds a parent function. I know I have to use non-primitive values as parameters, but I'm still not sure. How is this going? Here is sample code demonstrating my problem. Components: app.component('testComponent', {
template:'<bu
Vladimir Tried to figure this out, but couldn't... Maybe it's obvious: Call the "todo" component in HTML: <div *ngFor="let item of todoLists" class="row">
<div class="col-xl-7 col-lg-7 col-md-12 col-sm-12 col-xs-12 bottom-15">
<todo [listName]="i
Vladimir Tried to figure this out, but couldn't... Maybe it's obvious: Call the "todo" component in HTML: <div *ngFor="let item of todoLists" class="row">
<div class="col-xl-7 col-lg-7 col-md-12 col-sm-12 col-xs-12 bottom-15">
<todo [listName]="i
Vladimir Tried to figure this out, but couldn't... Maybe it's obvious: Call the "todo" component in HTML: <div *ngFor="let item of todoLists" class="row">
<div class="col-xl-7 col-lg-7 col-md-12 col-sm-12 col-xs-12 bottom-15">
<todo [listName]="i
Coty I have a component that binds a parent function. I know I have to use non-primitive values as parameters, but I'm still not sure. How is this going? Here is sample code demonstrating my problem. Components: app.component('testComponent', {
template:'<bu
Vladimir Tried to figure this out, but couldn't... Maybe it's obvious: Call the "todo" component in HTML: <div *ngFor="let item of todoLists" class="row">
<div class="col-xl-7 col-lg-7 col-md-12 col-sm-12 col-xs-12 bottom-15">
<todo [listName]="i