Skip to content

Commit f90f763

Browse files
committed
updated Readme for Angular+Typescript Usage
1 parent 98246e2 commit f90f763

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,17 @@ XML widget to create the Material Design Floating Action Button for NativeScript
4444
PLEASE NOTE: The fab is on the same **row number** as the listview
4545
***
4646

47+
#### Angular + TypeScript
48+
`import { registerElement } from "nativescript-angular/element-registry";`
49+
`registerElement("Fab", () => require("nativescript-floatingactionbutton").Fab);`
50+
51+
##### HTML
52+
```HTML
53+
<StackLayout>
54+
<FAB (tap)="fabTap()" icon="res://ic_add_white" rippleColor="#f1f1f1" class="fab-button"></FAB>
55+
</StackLayout>
56+
57+
4758
#### CSS
4859
Recommended CSS styles.
4960
```CSS

0 commit comments

Comments
 (0)