Quantcast
Channel: JavaScriptMVC Forum
Viewing all articles
Browse latest Browse all 3491

Re : Which CanJS files do I use with StealJS

$
0
0
Hi,
The steal and amd folders contain the same base code of canjs just the first works with stealjs as dependency manager and the second works with requirejs the others files (outside steal and amd) contain also the same canjs but without dependency manager in this case you have to put the files in the html document header or before closing body tag in this case can.jquery.js or can.jquery.min.js is main file (has map, control, construct, model, route etc) the others are plugins like can.construct.super.js, if you like to use dependency manager like steal you can import just files you need in your developement:
  1. steal('can/util/','can/control',function(can){
  2.       can.Control.extend({...})
  3.  })
With requirejs:
  1. define(['can/util/string','can/control'],function(can){
  2.       can.Control.extend({...})
  3.  })

Mohamed Cherif BOUCHELAGHEM

Viewing all articles
Browse latest Browse all 3491

Trending Articles