All Questions
Tagged with knockout.js requirejs
263
questions
1
vote
0
answers
96
views
Vscode intellisense AMD requirejs durandal
i am running an app in aspnetcore which uses plain js files for the view part,
in this case is a legacy app using :
jquery
Requirejs with AMD modules
Durandal (now aurelia) which enforces the use of ...
0
votes
1
answer
57
views
Inheritance issue with RequireJs and Knockout
I have a requirejs module that I use as a factory to create objects of different types, the factory is illustrated below:
requirejs.config({
appDir: ".",
baseUrl: "js",
...
1
vote
0
answers
218
views
Rendering multiple instances of the same knockout component after page load
I have knockout a component that I need to render and append several instances of after the page loads but keep getting errors every way I try.
Method that loads 1st component
rendertoolbar: ...
0
votes
1
answer
62
views
Knockout Sortable issues with require.js and jquery UI widgets
I'm trying to implement the following:
https://github.com/rniemeyer/knockout-sortable
but it doesn't seem to understand the paths correctly through require. It says its looking for:
"jquery-ui/ui/...
0
votes
1
answer
523
views
HTML components using Typescript, Knockout and Require - HTML is not rendered?
I am trying to learn how component driven development works and I have followed the documents here https://knockoutjs.com/documentation/component-custom-elements.html (Including the many nested links ...
1
vote
0
answers
143
views
Problem loading chartjs plugin using require.js
Is order to customize Chart.js evend more I want to add another library.
I'm having a hard time loading a library for Chart.js
the library is chartjs-plugin-datalabels. I'm using chart.js 2.8.0
This ...
0
votes
1
answer
560
views
Using Knockout type with TypeScript and RequireJs for ES5
I am learning TypeScript and struggle with the knockout type right now.
Right now I import the dependencies and then use them in my showPdf.ts file like this:
import $ = require("jquery");
import ko ...
0
votes
1
answer
51
views
How to access view mode in an extender
I would like to listen to a property called isDesktop and when it changes trigger show/hide options panel. Problem is within the extender the only parts I can access are target, option and this, none ...
1
vote
1
answer
150
views
Knockout binds element with [object HTMLDivElement] intermittently
I am using requireJs+knockout js in my UI application.
I have a div element in my main html file (index.html) like:
<html style="height:100%" lang="en">
<head>
<title>Main<...
0
votes
1
answer
3k
views
Magento2 theme mini cart KO templating issue
I have issues with Magento2 theme mini cart KO templating issue.
I have been trying to create a realtime mini cart dropdown in my header and having issue with its data rendering. I tried KO ...
0
votes
1
answer
2k
views
KnockoutJS elements not rendered once loaded via Jquery Ajax function
I have loaded a sidebar over ajax however this html uses knockoutJS to render completely. I am wondering how to execute the KnockoutJs portions of this code.
The content below is loaded via jQuery ...
2
votes
0
answers
139
views
Load requirejs modules from a secure server with auth token
I am using requirejs with knockout to load some modules from a remote server:
ko.components.register("my-component", {
viewModel: {
require: 'http://something.com/myModel.js'
},
template: {
...
0
votes
0
answers
113
views
Share data between child components in Durandal
I have created knockout application using Durandal and RequireJS and application has structure as shown below:
Student
Students
Manage
index.js
index.html
index....
1
vote
0
answers
55
views
Require.js - order of loading libraries?
Im trying to make Single Page Application (with Knockout.js - it's necessary to use it) which imitates products page in online shop. Here's how it looks like (for better understanding):
main page
...
1
vote
1
answer
338
views
Knockstrap popover not working with require.js
I'm trying to introduce a few bootstrap 3 elements, particularly alert and popover into a project that uses knockout, using knockstrap for handling bindings.
The alert and button elements work as ...