Open justinbmeyer opened 3 years ago
If a can-23
control wants to opt into using the CanJS 6 removed
event, you need to add:
Control.extend({
" removed": function(){ ... }
$useAsyncRemoved: true
})
This can be set globally like:
Control.$useAsyncRemoved = true
You need to import util/before-remove
to get the beforeRemove event and control to make removed
use beforeRemoved
by default.
Stache
{{3}}
looking up the 4th item in an array (assuming there is an array in the scope)<img src="{{image}}"/>
. These can be changed tosrc:from
.@index
being a helper that can add an offset like:<ul>{{#each list}}<li>{{@index 5}} {{.}}</li>{{/each}}</ul>
@index
use%index
{{joinBase 'hello/' name}}
options
2nd argument to stache .subtemplate
(we should get a warning here). Alsoscope.options
for both custom tags and attributes.Utils
SimpleMap
or mixineventQueue(object)
Component
<content/>
element. How common is<content>
? I can spend time making some edge cases work, but I'm skipping for now.<tabs>
defined after the template.p3='{{v3}}'
use normal bindings instead ... don't rely on automatic attribute bindings.