在 Nativescript/Angular 项目中使用浮动操作按钮

Use the floating action button in Nativescript/Angular project

在我的移动应用程序中,我有一个消息页面,显然我想添加一个浮动操作按钮来编写新消息。我当然听说过这个 plugin allowing me to use the FAB but it seems to work only for Nativescript project. I've already tried using the registerElement function to be able to use the element in the html file (like I did for the cardview) 但它什么也没给。

也许我做错了什么。我错过了什么?

尝试

registerElement("Fab", () => require("nativescript-floatingactionbutton").Fab);