-
Notifications
You must be signed in to change notification settings - Fork 0
Variables Hook
Benedict Albrecht edited this page Jun 1, 2026
·
3 revisions
The :hook scope connects a variable to any variable of the same type and text within the entire project, loading all files that can include these references. This is the broadest scope available.
<< name:hook >>
TypeScript file (.ts):
@Component({
selector: 'aaa-component',
templateUrl: './aaa.component.html',
styleUrls: ['./aaa.component.css'],
standalone: true,
imports: [ ],
})HTML file (.html):
<aaa-component [title]=this.title></aaa-component><:ref:> section : ' <<name:hook>> ' ; <:>
<:element:> < <<name>> -->> > <---> </ <<name>> > <:>
The :hook variable name in the .ts file connects to matching variables across the project:
- The HTML template references
aaa-component - The CSS file is linked via path
- Any file in the project that uses
aaa-componentestablishes a dependency
This is particularly useful for framework patterns (like Angular) where components are referenced across multiple file types (.ts, .html, .css).
See also:
:following·:up·:down·:siblings·:global
- Getting Started
- Sign-Up
- Home Screen
- Creating Your First Template
- Template Editor
- Application Navigation
- Syntax Overview
- Workflow: End-to-End
- Workflow: Test with simpleDemo
- Workflow: Build Template from angularTemp
- Demo Repositories
- Template
- Workbench
- GitHub Integration
- GitHub App Installation
- GitHub Repository Setup
- GitHub Re-linking
- Settings
- Overview
- Declarations
- Types
- Scoping