Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Load dynamic component without using Require.js dependency #2537

Open
alvarotrigo opened this issue Jul 14, 2020 · 1 comment
Open

Load dynamic component without using Require.js dependency #2537

alvarotrigo opened this issue Jul 14, 2020 · 1 comment
Labels

Comments

@alvarotrigo
Copy link

alvarotrigo commented Jul 14, 2020

I would like to remove the require.js dependency from my project.
Isn't there any simple way of dynamically load a component without using require?

At the moment I'm using the following:

    ko.components.register(element, {
        viewModel: { instance: demoViewModel },
        template: { require: 'text!views/demo.html' },
    });
 requirejs.config({
        paths: {
            text: 'bower_components/text/text'
        },

        urlArgs: "v=" + new Date().valueOf()

    });
@mbest
Copy link
Member

mbest commented Jul 16, 2020

Can you elaborate more on what you'd like to be able to do?

@mbest mbest added the waiting label Feb 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants