instanceof a class in angular library not working #47823
Labels
area: docs
Anything related to doc content, incl guides, API reference, tutorial, web content
docsarea: library-or-schematics
Use only with "area: docs". Applies to doc about creating and using libraries or schematics.
good first issue
An issue that is suitable for first-time contributors; often a documentation issue.
Milestone
malvandi commentedOct 20, 2022
•
edited
Which @angular/* package(s) are the source of the bug?
compiler
Is this a regression?
No
Description
I have an angular project

angular-library-project(link). I create an angular library with commandng g library angular-library. Now I create the classAngularLibrary. The structure as follows:I add
oldependency to both projects and usedol/Viewclass as follow:AngularLibraryclass:And I used
AngularLibraryinapp.component.tsfile as follows:The console log is the opposite of what I expected. It's as follows:

What's the problem?
Please provide a link to a minimal reproduction of the bug
https://github.com/malvandi/angular-library-project
Please provide the exception or error you saw
No response
Please provide the environment you discovered this bug in (run
ng version)Anything else?
No response
The text was updated successfully, but these errors were encountered: