File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,28 @@ Run the following command from the root of your project:
28
28
PagerIndicator add page control for Pager or other Paging Views.
29
29
```
30
30
31
+ ## Usage in Angular
32
+
33
+
34
+ If you are planning to use an indicator, add the following to your module:
35
+
36
+ ``` typescript
37
+ import { registerElement } from " @nativescript/angular" ;
38
+ import { PagerIndicator } from " @nativescript-community/ui-pager-indicator" ;
39
+ registerElement (" PagerIndicator" , () => PagerIndicator )
40
+ ```
41
+
42
+ Then in your template:
43
+ ``` html
44
+ <Pager id =" pager" [items] =" items"
45
+ ...
46
+ </Pager >
47
+ <PagerIndicator pagerViewId =" pager" />
48
+ ```
49
+
50
+ ### Examples
51
+ - [ Indicator Pager] ( demo-snippets/ng/indicator )
52
+ - A simple pager example using dynamic content and indicator.
31
53
32
54
## Usage in Vue
33
55
You can’t perform that action at this time.
0 commit comments