GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing angular.dev — Directive • Angular APIThe CSS selector that identifies this directive in a template and triggers instantiation of the directive. Declare as one of the following:
Angular only allows directives to apply on CSS selectors that do not cross element boundaries. For the following template HTML, a directive with an
Enumerates the set of data-bound input properties for a directive Angular automatically updates input properties during change detection.
The When an object literal is passed in, the When a string is passed into the Enumerates the set of event-bound output properties. When an output property emits an event, an event handler attached to that event in the template is invoked. The
Configures the injector of this directive or component with a token that maps to a provider of a dependency. Defines the name that can be used in the template to assign this directive to a variable. Configures the queries that will be injected into the directive. Content queries are set before the Maps class properties to host element bindings for properties, attributes, and events, using a set of key-value pairs. Angular automatically checks host property bindings during change detection. If a binding changes, Angular updates the directive's host element. When the key is a property of the host element, the property value is propagated to the specified DOM property. When the key is a static attribute in the DOM, the attribute value is propagated to the specified property in the host element. For event handling:
When present, this directive/component is ignored by the AOT compiler.
It remains in distributed code, and the JIT compiler attempts to compile it
at run time, in the browser.
To ensure the correct behavior, the app must import Set Standalone directives that should be applied to the host whenever the directive is matched.
By default, none of the inputs or outputs of the host directives will be available on the host,
unless they are specified in the You can additionally alias inputs and outputs by putting a colon and the alias after the
original input or output name. For example, if a directive applied via DescriptionDecorator that marks a class as an Angular directive. You can define your own directives to attach custom behavior to elements in the DOM. The options provide configuration metadata that determines how the directive should be processed, instantiated and used at runtime. Directive classes, like component classes, can implement life-cycle hooks to influence their configuration and behavior. Usage NotesTo define a directive, mark the class with the decorator and provide metadata.
Declaring directivesBy default, directives are marked as standalone, which makes them available to other components in your application.
Please make sure that directives marked as standalone are not already declared in an NgModule. ** Declaring a directive in an NgModule **
If you want to declare a directive in an ngModule, add the
When declaring a directive in an NgModule, please make sure that:
|
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |