Skip to content

Commit 0519051

Browse files
chore(all): prepare release 1.12.0
1 parent 242a259 commit 0519051

17 files changed

+565
-239
lines changed

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "aurelia-templating-resources",
3-
"version": "1.11.0",
3+
"version": "1.12.0",
44
"description": "A standard set of behaviors, converters and other resources for use with the Aurelia templating library.",
55
"keywords": [
66
"aurelia",

dist/amd/aurelia-templating-resources.js

Lines changed: 86 additions & 38 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/amd/aurelia-templating-resources.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/aurelia-templating-resources.d.ts

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
11
import { OverrideContext, bindingMode } from 'aurelia-binding';
22
import { View, ViewFactory, ViewSlot } from 'aurelia-templating';
33

4+
declare enum ActivationStrategy {
5+
/**
6+
* Default activation strategy; the 'activate' lifecycle hook will be invoked when the model changes.
7+
*/
8+
InvokeLifecycle = "invoke-lifecycle",
9+
/**
10+
* The view/view-model will be recreated, when the "model" changes.
11+
*/
12+
Replace = "replace"
13+
}
414
/**
515
* Used to compose a new view / view-model template or bind to an existing instance.
616
*/
@@ -26,6 +36,14 @@ export declare class Compose {
2636
* @type {Class}
2737
*/
2838
viewModel: any;
39+
/**
40+
* Strategy to activate the view-model. Default is "invoke-lifecycle".
41+
* Bind "replace" to recreate the view/view-model when the model changes.
42+
*
43+
* @property activationStrategy
44+
* @type {ActivationStrategy}
45+
*/
46+
activationStrategy: ActivationStrategy;
2947
/**
3048
* SwapOrder to control the swapping order of the custom element's view.
3149
*
@@ -227,6 +245,14 @@ export declare class AbstractRepeater {
227245
* Binding to iterate over iterable objects (Array, Map and Number) to genereate a template for each iteration.
228246
*/
229247
export declare class Repeat extends AbstractRepeater {
248+
/**
249+
* Setting this to `true` to enable legacy behavior, where a repeat would take first `matcher` binding
250+
* any where inside its view if there's no `matcher` binding on the repeated element itself.
251+
*
252+
* Default value is true to avoid breaking change
253+
* @default true
254+
*/
255+
static useInnerMatcher: boolean;
230256
/**
231257
* List of items to bind the repeater to.
232258
*

0 commit comments

Comments
 (0)