Skip to content

Commit

Permalink
fix(bottom-navigation): missing angular registerElement
Browse files Browse the repository at this point in the history
  • Loading branch information
farfromrefug committed Apr 7, 2021
1 parent 716376b commit f0c073e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/bottom-navigation/angular/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Directive, NgModule } from '@angular/core';
import { registerElement } from '@nativescript/angular';
import { BottomNavigation } from '@nativescript-community/ui-material-bottom-navigation';
import { BottomNavigation, TabContentItem, TabStrip, TabStripItem } from '@nativescript-community/ui-material-bottom-navigation';

@Directive({ selector: 'MDBottomNavigation' })
export class MaterialBottomNavigationDirective {}
Expand All @@ -12,3 +12,6 @@ export class MaterialBottomNavigationDirective {}
export class NativeScriptMaterialBottomNavigationModule {}

registerElement('MDBottomNavigation', () => BottomNavigation);
registerElement('MDTabStrip', () => TabStrip);
registerElement('MDTabStripItem', () => TabStripItem);
registerElement('MDTabContentItem', () => TabContentItem);

0 comments on commit f0c073e

Please sign in to comment.