Re : When using a Component, when do I choose between the init method of the...
you may look in can/component.js the order of init actions.
View ArticleHow to change data passed into child can.Component
Please see this fiddle:http://jsfiddle.net/marshallswain/N9d4B/10/I've successfully passed data to the child component through the use of the html name attribute in the parent component's template....
View ArticleRe : How to change data passed into child can.Component
You don't want to pass in the string value. You want to pass a reference to the active.name property. So get rid of the {{ and name shouldn't be '@'. That will fix it for...
View ArticleRe : How to change data passed into child can.Component
Simple. Thank you! It plays tricks on the mind to pass a reference to a variable between double quotes. :)
View ArticleSteal build cannot handle utf-8 properly?
Hi, Can you make steal to build utf-8 template properly? My new project has to deal with Chinese mustache template. Everything is in utf-8 format. The template works fine in dev mode, but after steal...
View ArticleRe : Steal build cannot handle utf-8 properly?
To solve this I would make a helper that would return utf-8 string .
View ArticleNested resource views
Hi AllI am building a small demo application that has nested resource views. For example:#!accounts - takes you to a view with a list of accounts on the left#!accounts/2 - takes you to a view with the...
View ArticleRe : Nested resource views
why you are not using can.Component? It would make things much cleaner.
View ArticleRe : authentication and routing
Trying to have an authentication page for my simple application (Let's say an application that have left nav and content). Below is the index.html <!doctype html> <html lang="en">...
View ArticleRe : Nested resource views
Hi AlexI fail to see how component is going to help me, could you elaborate?Thanks,Sebastian
View ArticleRe : Nested resource views
Hi, you mean how to handle related data? Maybe you need to change the way you retreive data from the fixture (backend), Im doing some boilerplate work if you are interesting...
View ArticleRe : Nested resource views
I mean how to handle the instantiation of nested views when hitting different routes. For example:#!accounts - Should instantiate an accounts control (show the orange navigation in the image...
View ArticleRe : Nested resource views
I Updated my code hope it can helps.Mohamed Cherif BOUCHELAGHEM
View ArticleRe : Steal build cannot handle utf-8 properly?
@alex thank you! I tried a mustache helper and it does not work.I believe I have to forget it and move on. I have wasted too much time on steal.
View ArticleUnable to set desired context using mustache #with
First of all, thanks for a great framework.I have a use case when using #with helper with a nested can.Map. My data passed in to the view is in the form:var data = { map : new can.Map({a : {b : 'test'...
View ArticleRe : Nested resource views
Hi,http://jsfiddle.net/xKc3H/339/here is a simple example with can.Component that shows how to glue your two widgets together (instantiate account view depending on what account is currently selected)...
View ArticleRe : Steal build cannot handle utf-8 properly?
what do you mean it does not work? helper should just return a string you may keep the dictionary (of strings) some where. another way is not to use precomiled views (just string views, they will be...
View ArticleRe : execution of steal causes DOM nodes to lose data attribute data
You are right, the source of my problems is that a 2nd version of jQuery that is being loaded.My code was derived from this examplehttp://jquerypp.com/#swipehttp://jsfiddle.net/Daff/abaZN/show/Its...
View ArticleRe : authentication and routing
Is there any sample code for this ? Planning to have login page before the home page.
View Article