-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Element for FAB already registered #49
Comments
Had the same problem. Then I placed it in my top-level app component above the class definition and it works fine now.
|
Thanks @Adam95 for the info. |
Hi.. I am getting the same error. import {registerElement} from 'nativescript-angular/element-registry'; registerElement('Fab', () => require('nativescript-floatingactionbutton').Fab); @component({ |
I do this in app.component import { Fab } from "nativescript-floatingactionbutton";
import { registerElement } from "nativescript-angular/element-registry";
registerElement("Fab", () => Fab); and have no issues, hope that helps. |
If it's stretched then you likely don't have a |
Nativescript + Angular:
What is the best place to register FAB?
registerElement("Fab", () => require("nativescript-floatingactionbutton").Fab);
in AppModule, AppComponent, ChildComponents gives an error "Element for FAB already registered".
The text was updated successfully, but these errors were encountered: