Skip to content

How to import enum types in Angular? #154

@steffenlutter-sap

Description

@steffenlutter-sap

Issue Description

From the documentation it is not clear to me how to import enums - while I got help on Slack to get this working on my local dev environment, I am wondering if this is the way it should be done:

import FCLLayout from "@ui5/webcomponents-fiori/dist/types/FCLLayout.js";

Should enum types be re-exported by the angular wrapper? Or maybe should the documentation be improved?

Speaking of which - which one is the official documentation for the Angular Wrapper? I can find https://sap.github.io/ui5-webcomponents/docs/frameworks/Angular/ which seems to be a one-pager and https://ui5-webcomponents-ngx.netlify.app - but not sure if the latter is official. For react I can find something more official looking (https://sap.github.io/ui5-webcomponents-react/v2/) but I don't find any equivalent for Angular.

Maybe you can guide me here?

Many thanks in advance.

Issue Type

  • Documentation is unclear
  • Documentation is incorrect
  • Documentation is missing
  • Other

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions