Questions tagged as 'requirejs'

0
answers

RequireJS and Page Loading via ajax

Hello, someone has some example of using the requirejs with pages that have been loaded via ajax. My question is how to organize the code so that when the page is reloaded via ajax the elements are handled by jquery codes. Without the require...
asked by 21.03.2016 / 13:35
1
answer

How do I migrate my website to RequireJS?

Currently I concatenate all my javascripts with grunt I send the mined file to the page, but I know a best practice is to use RequireJS to muddle everything, but I do not know how to migrate my Javascript files from "normal" to "modules ". :   ...
asked by 24.07.2015 / 20:38
1
answer

Angular + RequireJS

Below is the code structure to facilitate: main.js require.config({ baseUrl: '/', shim: { angular: { exports: "angular" }, route: { deps: ["angular"] }, app:{...
asked by 14.01.2015 / 21:47
1
answer

Questions about how it works or RequireJS

I'm making an application that will consume some Twitter data. I am using the library recommended by the API developers, as my application is just for consuming API I only use javascript and jQuery , then I use the TwitterJSClient library....
asked by 30.06.2014 / 05:19
1
answer

Load ViewModel and external template into the Knockout component

I'm trying to load the template and the ViewModel into a knockout component using require.js, but so far unsuccessful. index.html (view) <!doctype html> <head> <link href="assets/css/bootstrap.min.css" rel="stylesheet"...
asked by 13.08.2017 / 00:35
0
answers

Using jQuery correctly + RequireJS + AngularJS

I am trying to get the themes/cms/build/js/main.min.js file to work properly after being loaded by RequireJS , but I have not been successful. The file is loaded, some functions work as console.log() , but others like $(elemen...
asked by 02.10.2016 / 00:36
0
answers

requireJS and JQuery causing dependency problems

I'm trying to apply requireJS in my application, so I'm having some problems. require-config.js var require = { paths: { "jquery": "/admin/admin-v2/bower_components/jquery/dist/jquery.min", "bootstrap": "/admin/admin-v2/...
asked by 31.07.2015 / 19:27
0
answers

Controller does not load Angular + RequireJS

I'm developing an architecture to work with Angular in a large application with MVC AspNet, in this application it will not be the Angular that will treat the routes, but rather AspNet, so in this architecture I will not have Angular routes....
asked by 29.04.2015 / 23:57
0
answers

AngularJS + RequireJS [Error Injection]

Introduction I'm developing a structure using AngularJS and RequireJS . I'm starting to study RequireJS and I researched a lot about it, but I still have not gotten any clear of it using AngularJS . Github Code Problem [Solved]...
asked by 17.06.2015 / 05:57
0
answers

Requirejs with Jquery how to use Jquery Plugins

I'm using requireJS to import my javascripts, however when I run the code below, it gives the following error: Uncaught TypeError: $(...).hashchange is not a function" (function( undefined ) { 'use strict'; require.config({...
asked by 24.10.2018 / 22:57