Skip to content

Commit 3f80779

Browse files
committed
Compiled preview limits: guard fields are accepted route fields
1 parent 26277ba commit 3f80779

1 file changed

Lines changed: 20 additions & 20 deletions

File tree

‎content/guide/publishing/compiled-differences.md‎

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -115,26 +115,26 @@ of them.
115115

116116
### Angular
117117

118-
| Refused | Instead, for now |
119-
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | --------------------------------------------------------------------------- |
120-
| `@angular/forms` on a component or hosted component (it needs `NG_VALUE_ACCESSOR`), on `<ng-container>`, with `ngDefaultControl`, or beside a `[class]` binding; two controls or two form containers on one element; a forms directive whose module isn't imported | Put the control on a NativeScript view (`TextField`, `Switch`, `Slider`, …) |
121-
| `ngPlural`, `ngPluralCase`, `ngComponentOutlet`; `ngIf`, `ngForOf` or `ngSwitchCase` on an element without `*`; `[ngTemplateOutlet]` anywhere but `<ng-container>` | `@if`, `@for`, `@switch`, or the `*` form |
122-
| `<ng-content>` (content projection), and content inside an element that hosts an attribute-selected component | Pass the data as inputs and render it in the child's own template |
123-
| `*pagerItem`, and structural directives other than `*ngIf`, `*ngFor`, `*ngTemplateOutlet`, `*ngSwitchCase` and `*ngSwitchDefault` | For a pager, `<Pager [items]>` with an `<ng-template let-item>` |
124-
| `canLoad` and `resolve` | `canMatch` in place of `canLoad`; load the data in the routed component |
125-
| Route fields other than `path`, `pathMatch`, `component`, `loadComponent`, `redirectTo`, `outlet`, `children`, `loadChildren`, `title` and `runGuardsAndResolvers` (such as `data`, `providers`, `matcher`) | |
126-
| A `path`, `pathMatch`, `redirectTo` or `outlet` that isn't a string literal; a `component` that isn't a class name | |
127-
| Router features other than `withPreloading()` and `withDebugTracing()`; `forRoot` options other than `enableTracing`, `useHash`, `preloadingStrategy`, `scrollPositionRestoration`, `anchorScrolling`, `scrollOffset` | |
128-
| In a routes table outside the app's entry (an NgModule's routing module): `children`, `loadChildren`, `loadComponent`, `outlet`, and a redirect from a path other than `''` | Give the routes to `provideNativeScriptRouter(routes)` in the entry |
129-
| Angular's `routerLink` and `routerLinkActive`, and `nsRouterLinkActive` | `nsRouterLink` |
130-
| `animate.enter`, `animate.leave` and animation events; `(window:…)` and `(document:…)` events | |
131-
| `<ng-container>` with a `#ref`, an event, a directive of yours, or an input other than `ngSwitch`, `ngTemplateOutlet` and `ngTemplateOutletContext` | |
132-
| `<page-router-outlet>` with anything but `name` and `actionBarVisibility="auto"` | |
133-
| `@Component` `host`, `providers`, `viewProviders`, `inputs`, `outputs`, `queries`, `hostDirectives`, `interpolation`, `preserveWhitespaces: true` | `providedIn: 'root'` services; `input()` and `output()` |
134-
| `viewChild()`, `viewChildren()`, `contentChild()`, `contentChildren()`; an `input()` or `model()` option other than `alias`; an `output()` option | `@ViewChild` and `@ViewChildren` |
135-
| In a `@Directive`: fields other than `selector`, `inputs` and `host`; `input()`, `output()`, `model()` and signal queries; lifecycle hooks other than `ngOnInit`, `ngOnChanges`, `ngAfterViewInit`, `ngOnDestroy` | |
136-
| An app `@NgModule`'s `providers` | |
137-
| A plugin element whose `registerElement` meta adds its children itself (`insertChild`, `removeChild`), when it has children; one registered with `skipAddToDom` | |
118+
| Refused | Instead, for now |
119+
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------- |
120+
| `@angular/forms` on a component or hosted component (it needs `NG_VALUE_ACCESSOR`), on `<ng-container>`, with `ngDefaultControl`, or beside a `[class]` binding; two controls or two form containers on one element; a forms directive whose module isn't imported | Put the control on a NativeScript view (`TextField`, `Switch`, `Slider`, …) |
121+
| `ngPlural`, `ngPluralCase`, `ngComponentOutlet`; `ngIf`, `ngForOf` or `ngSwitchCase` on an element without `*`; `[ngTemplateOutlet]` anywhere but `<ng-container>` | `@if`, `@for`, `@switch`, or the `*` form |
122+
| `<ng-content>` (content projection), and content inside an element that hosts an attribute-selected component | Pass the data as inputs and render it in the child's own template |
123+
| `*pagerItem`, and structural directives other than `*ngIf`, `*ngFor`, `*ngTemplateOutlet`, `*ngSwitchCase` and `*ngSwitchDefault` | For a pager, `<Pager [items]>` with an `<ng-template let-item>` |
124+
| `canLoad` and `resolve` | `canMatch` in place of `canLoad`; load the data in the routed component |
125+
| Route fields other than `path`, `pathMatch`, `component`, `loadComponent`, `redirectTo`, `outlet`, `children`, `loadChildren`, `title`, `runGuardsAndResolvers`, `canActivate`, `canActivateChild`, `canDeactivate` and `canMatch` (such as `data`, `providers`, `matcher`) | |
126+
| A `path`, `pathMatch`, `redirectTo` or `outlet` that isn't a string literal; a `component` that isn't a class name | |
127+
| Router features other than `withPreloading()` and `withDebugTracing()`; `forRoot` options other than `enableTracing`, `useHash`, `preloadingStrategy`, `scrollPositionRestoration`, `anchorScrolling`, `scrollOffset` | |
128+
| In a routes table outside the app's entry (an NgModule's routing module): `children`, `loadChildren`, `loadComponent`, `outlet`, and a redirect from a path other than `''` | Give the routes to `provideNativeScriptRouter(routes)` in the entry |
129+
| Angular's `routerLink` and `routerLinkActive`, and `nsRouterLinkActive` | `nsRouterLink` |
130+
| `animate.enter`, `animate.leave` and animation events; `(window:…)` and `(document:…)` events | |
131+
| `<ng-container>` with a `#ref`, an event, a directive of yours, or an input other than `ngSwitch`, `ngTemplateOutlet` and `ngTemplateOutletContext` | |
132+
| `<page-router-outlet>` with anything but `name` and `actionBarVisibility="auto"` | |
133+
| `@Component` `host`, `providers`, `viewProviders`, `inputs`, `outputs`, `queries`, `hostDirectives`, `interpolation`, `preserveWhitespaces: true` | `providedIn: 'root'` services; `input()` and `output()` |
134+
| `viewChild()`, `viewChildren()`, `contentChild()`, `contentChildren()`; an `input()` or `model()` option other than `alias`; an `output()` option | `@ViewChild` and `@ViewChildren` |
135+
| In a `@Directive`: fields other than `selector`, `inputs` and `host`; `input()`, `output()`, `model()` and signal queries; lifecycle hooks other than `ngOnInit`, `ngOnChanges`, `ngAfterViewInit`, `ngOnDestroy` | |
136+
| An app `@NgModule`'s `providers` | |
137+
| A plugin element whose `registerElement` meta adds its children itself (`insertChild`, `removeChild`), when it has children; one registered with `skipAddToDom` | |
138138

139139
A name in the first rows that a directive or attribute-selected component of your own takes as an input is
140140
yours, and isn't refused.

0 commit comments

Comments
 (0)