components icon indicating copy to clipboard operation
components copied to clipboard

bug(all): directives are not standalone

Open nseni opened this issue 3 years ago • 0 comments

Is this a regression?

  • [ ] Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was

No response

Description

As the standalone APIs have become stable in v15, I expected @angular/material directives to be declared as standalone, but it did not happen for some reason?

Reproduction

import { MatTooltip } from '@angular/material/tooltip';

@Directive({
  selector: '[appCustomTooltip]',
  hostDirectives: [MatTooltip],
})
export class CustomTooltipDirective {}

Expected Behavior

MatTooltip and MatLegacyTooltip should be standalone directives

Actual Behavior

Error: NG0308: Host directive MatTooltip must be standalone.

Environment

Angular CLI: 15.0.0
Node: 18.12.0
Package Manager: npm 9.1.1
OS: win32 x64

Angular: 15.0.0
... animations, cdk, cli, common, compiler, compiler-cli, core
... forms, material, platform-browser, platform-browser-dynamic
... router

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1500.0
@angular-devkit/build-angular   15.0.0
@angular-devkit/core            15.0.0
@angular-devkit/schematics      15.0.0
@schematics/angular             15.0.0
rxjs                            7.5.7
typescript                      4.8.4

nseni avatar Nov 20 '22 14:11 nseni