Re : not working after building hellow world application, building was...
I found the way to build the application autside the javascriptmvc forder. It's small "work around".The thing is that after build, tha dependencies which url's start with "../" are mapped in...
View Articlecanjs production.js issue.
Hi Justin,I am using canjs and stealjs for my project, after successfully building it, I am facing lots of problems while creating the production build. Even I tried it to with canjs latest TODO app,...
View ArticleRe : can.route without hash for pretty routes
CanJS has a plugin, can/route/pushstate, which performs routing based on the entire URL instead of just the hash -- and it uses window.history.pushstate to update the URL when you change routes in your...
View ArticleRe : Conventions, strategy, syntax, file extension for external mustache...
So I'm confused, do my returned JSON arrays returned with findAll() have to have "data" as the key? Testing now I get an error if it is not "data"[Error, Object, "success", Object]message: "Could not...
View ArticleRe : Conventions, strategy, syntax, file extension for external mustache...
Think I got it. Data I assume is default and can be overridden with Model.model. so given:{ "someKey: [ {}, {}, {} ]} I have to havevar SomeModel =...
View ArticlePass list item itself to the component
I have a can.List items, and I would like to create component for each item and pass each item as components scope attribute.I tried:{{#items}} <my-component item="this">{{/items}}But it...
View ArticleRe : can.route without hash for pretty routes
Thanks for the info, I'll try from there.
View ArticleRe : can.view("only url") vs can.view.render("only url") - when no data...
var a = can.Control.extend({ init: function(element, options) { a.findAll({}, function(response) { element.html(can.view('a.ejs', { d: response...
View ArticleHow to listen correctly to changes on a specific attribute of all model...
Fiddle here: http://jsfiddle.net/jz6ss/4/Are there better posibilities?
View ArticleRe : this._super causes the error: Maximum call stack size exceeded
Not sure why it's breaking, but as a workaround you can do a more classic style of _super:ControllerB = ControllerA.extend({},{ init:function(element, options){...
View ArticleRe : How to listen correctly to changes on a specific attribute of all model...
Usually if I need to do that, I bind it in the prototype init() for the model class.e.g. var Todo = can.Model.extend({ findAll: 'GET /todos', findOne: 'GET /todos/{id}', update: 'PUT /todos/{id}',...
View ArticleRe : How to listen correctly to changes on a specific attribute of all model...
Why do you want to do this? Binding to every instance could be leaky.
View ArticleRe : How to listen correctly to changes on a specific attribute of all model...
Supposing I have a paged list of article models. The user could mark one or more articles for further editing.If the user marks one, the article model should be added to another list. Otherwise it will...
View ArticleRe : Anyone using something other than jQuery and Zepto?
Also something interesting from Zurb and the latest Foundation:http://zurb.com/article/1293/why-we-dropped-zepto
View ArticleRe : How to listen correctly to changes on a specific attribute of all model...
Could you keep a list of "marked" items on the constructor:http://jsfiddle.net/ryanwheale/jz6ss/5/
View ArticleRe : Controller/ Model/ Observe pagination events
I think this snippet is a old one as the new document suggest the can.Map using the same I have a template in ejs say <%= title...
View ArticleCanjs Downloads.
Hello Friends,I am willing to use canjs for one of my new big project, So, that I started exploring some more new added features of canjs, In this way, I found can.Component and can.Map with great...
View ArticleUsing control.plugin with bootstrap
Hi everyone,I have seen this question asked before, but never really felt like it was answered in a way I understood. I would like to know the best way to integrated 3rd party plugins into canjs. An...
View ArticleRe : Canjs Downloads.
They are bug-free but not yet part of JMVC. JMVC releases lag behind the releases of its individual projects. The next version of JMVC will include CanJS 2.1.
View ArticleRe : How to check if a controller is initialized ?
Why not look at the "controls" property on data object of the element in question?$( selector ).data("controls")Look in there and check if the control is question exists.
View Article