Skip to content

Commit 824fe83

Browse files
authored
Merge pull request #45 from dlucidone/master
Update ReadMe for Angular2 + Typescript
2 parents 98246e2 + 34c4aaa commit 824fe83

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,18 @@ 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+
50+
`registerElement("Fab", () => require("nativescript-floatingactionbutton").Fab);`
51+
52+
##### HTML
53+
```HTML
54+
<StackLayout>
55+
<FAB (tap)="fabTap()" icon="res://ic_add_white" rippleColor="#f1f1f1" class="fab-button"></FAB>
56+
</StackLayout>
57+
```
58+
4759
#### CSS
4860
Recommended CSS styles.
4961
```CSS

0 commit comments

Comments
 (0)