From d86b4b59faa8396bbeeb32a7082608ff74b71547 Mon Sep 17 00:00:00 2001 From: Chris Ng Date: Thu, 13 Sep 2018 14:59:47 -0400 Subject: [PATCH 1/4] blog(embertimes64): Element Modifier --- source/blog/2018-09-14-the-ember-times-issue-64.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/source/blog/2018-09-14-the-ember-times-issue-64.md b/source/blog/2018-09-14-the-ember-times-issue-64.md index d5530b23fb..264fd7a229 100644 --- a/source/blog/2018-09-14-the-ember-times-issue-64.md +++ b/source/blog/2018-09-14-the-ember-times-issue-64.md @@ -36,8 +36,20 @@ Curious? [**Read the full proposal**](https://github.com/emberjs/rfcs/pull/372) --- -## [SECTION TITLE](#section-url) +## [RFC: Element Modifiers ⚛️](https://github.com/emberjs/rfcs/pull/373) + +Ember Core Team member [@chadhietala](https://github.com/chadhietala) proposed 2 RFCs around Element Modifiers – one for the [Modifier Manager](https://github.com/emberjs/rfcs/pull/373) and the other for the [Element Modifier](https://github.com/emberjs/rfcs/pull/353) itself. + +Element Modifiers provide stable access of the DOM node they are installed on similar to the `{{action}}` modifier. Unlike a component, there is no template/layout for an element modifier. Unlike a helper, an element modifier does not return a value. An element modifier is invoked in "element space". This is the space between `<` and `>` opening an HTML tag. + +Here is an example of the element modifier syntax in action: +``` + +``` + +The [Modifier Manager RFC](https://github.com/emberjs/rfcs/pull/373) proposes to add a low level primitive for defining an element modifier which is responsible for coordinating the lifecycle events that occurs when invoking, installing and updating an element modifier. Most app developers would not need interact with the manager but it would allow the community to experiment with and iterate on this API outside of the core framework. +See more in the respective RFCs for [Element Modifier](https://github.com/emberjs/rfcs/pull/353) and [Modifier Manager](https://github.com/emberjs/rfcs/pull/373). --- From 9ed09e365f6a9da095177976c8acbb3f2aa64cfd Mon Sep 17 00:00:00 2001 From: Chris Ng Date: Thu, 13 Sep 2018 15:03:39 -0400 Subject: [PATCH 2/4] blog(embertimes64): update title to RFCs --- source/blog/2018-09-14-the-ember-times-issue-64.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blog/2018-09-14-the-ember-times-issue-64.md b/source/blog/2018-09-14-the-ember-times-issue-64.md index 264fd7a229..04092aa082 100644 --- a/source/blog/2018-09-14-the-ember-times-issue-64.md +++ b/source/blog/2018-09-14-the-ember-times-issue-64.md @@ -36,7 +36,7 @@ Curious? [**Read the full proposal**](https://github.com/emberjs/rfcs/pull/372) --- -## [RFC: Element Modifiers ⚛️](https://github.com/emberjs/rfcs/pull/373) +## [Element Modifiers RFCs ⚛️](https://github.com/emberjs/rfcs/pull/373) Ember Core Team member [@chadhietala](https://github.com/chadhietala) proposed 2 RFCs around Element Modifiers – one for the [Modifier Manager](https://github.com/emberjs/rfcs/pull/373) and the other for the [Element Modifier](https://github.com/emberjs/rfcs/pull/353) itself. From 83d820c739f3b97c050b51d2485ab1c44fdbbb56 Mon Sep 17 00:00:00 2001 From: Chris Ng Date: Thu, 13 Sep 2018 15:13:20 -0400 Subject: [PATCH 3/4] blog(embertimes64): Modifier not modifiers --- source/blog/2018-09-14-the-ember-times-issue-64.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blog/2018-09-14-the-ember-times-issue-64.md b/source/blog/2018-09-14-the-ember-times-issue-64.md index 04092aa082..817922b929 100644 --- a/source/blog/2018-09-14-the-ember-times-issue-64.md +++ b/source/blog/2018-09-14-the-ember-times-issue-64.md @@ -36,7 +36,7 @@ Curious? [**Read the full proposal**](https://github.com/emberjs/rfcs/pull/372) --- -## [Element Modifiers RFCs ⚛️](https://github.com/emberjs/rfcs/pull/373) +## [Element Modifier RFCs ⚛️](https://github.com/emberjs/rfcs/pull/373) Ember Core Team member [@chadhietala](https://github.com/chadhietala) proposed 2 RFCs around Element Modifiers – one for the [Modifier Manager](https://github.com/emberjs/rfcs/pull/373) and the other for the [Element Modifier](https://github.com/emberjs/rfcs/pull/353) itself. From 0c170eac18a809961c0db55d29d997e1e66950ad Mon Sep 17 00:00:00 2001 From: Chris Ng Date: Thu, 13 Sep 2018 16:50:29 -0400 Subject: [PATCH 4/4] blog(embertimes64): Update Chad's feedback --- source/blog/2018-09-14-the-ember-times-issue-64.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blog/2018-09-14-the-ember-times-issue-64.md b/source/blog/2018-09-14-the-ember-times-issue-64.md index 817922b929..8c2600743e 100644 --- a/source/blog/2018-09-14-the-ember-times-issue-64.md +++ b/source/blog/2018-09-14-the-ember-times-issue-64.md @@ -40,7 +40,7 @@ Curious? [**Read the full proposal**](https://github.com/emberjs/rfcs/pull/372) Ember Core Team member [@chadhietala](https://github.com/chadhietala) proposed 2 RFCs around Element Modifiers – one for the [Modifier Manager](https://github.com/emberjs/rfcs/pull/373) and the other for the [Element Modifier](https://github.com/emberjs/rfcs/pull/353) itself. -Element Modifiers provide stable access of the DOM node they are installed on similar to the `{{action}}` modifier. Unlike a component, there is no template/layout for an element modifier. Unlike a helper, an element modifier does not return a value. An element modifier is invoked in "element space". This is the space between `<` and `>` opening an HTML tag. +Element Modifiers provide stable access of the DOM node they are installed on. Unlike a component, there is no template/layout for an element modifier. Unlike a helper, an element modifier does not return a value. An element modifier is invoked in "element space". This is the space between `<` and `>` opening an HTML tag. Here is an example of the element modifier syntax in action: ```