From 200a75edb64e871ab5dc1aa332e2d619b0f65585 Mon Sep 17 00:00:00 2001 From: Daniel Grieve Date: Fri, 28 Apr 2023 15:49:09 +0100 Subject: [PATCH 1/2] Add naming requirement for outlet controller identifiers to docs --- docs/reference/outlets.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/reference/outlets.md b/docs/reference/outlets.md index 8f19ad21..43aef070 100644 --- a/docs/reference/outlets.md +++ b/docs/reference/outlets.md @@ -33,7 +33,7 @@ While a **target** is a specifically marked element **within the scope** of its ## Attributes and Names -The `data-search-result-outlet` attribute is called an _outlet attribute_, and its value is a [CSS selector](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Selectors) which you can use to refer to other controller elements which should be available as outlets on the _host controller_. +The `data-search-result-outlet` attribute is called an _outlet attribute_, and its value is a [CSS selector](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Selectors) which you can use to refer to other controller elements which should be available as outlets on the _host controller_. The outlet identifier in the host controller **must be the same** as the target controller's name. ```html data-[identifier]-[outlet]-outlet="[selector]" From d7bb6480bb7db229e982fe244779bffdfef090ce Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Mon, 29 May 2023 12:31:08 +0200 Subject: [PATCH 2/2] Update outlets.md --- docs/reference/outlets.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/reference/outlets.md b/docs/reference/outlets.md index 43aef070..71f2342c 100644 --- a/docs/reference/outlets.md +++ b/docs/reference/outlets.md @@ -33,7 +33,7 @@ While a **target** is a specifically marked element **within the scope** of its ## Attributes and Names -The `data-search-result-outlet` attribute is called an _outlet attribute_, and its value is a [CSS selector](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Selectors) which you can use to refer to other controller elements which should be available as outlets on the _host controller_. The outlet identifier in the host controller **must be the same** as the target controller's name. +The `data-search-result-outlet` attribute is called an _outlet attribute_, and its value is a [CSS selector](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Selectors) which you can use to refer to other controller elements which should be available as outlets on the _host controller_. The outlet identifier in the host controller must be the same as the target controller's name. ```html data-[identifier]-[outlet]-outlet="[selector]"