An open API service indexing awesome lists of open source software.

https://github.com/shripalsoni04/nativescript-angular-drawer-template

A starter project to quickly create nativescript angular project with drawer pages.
https://github.com/shripalsoni04/nativescript-angular-drawer-template

android angular drawerlayout ios nativescript

Last synced: 4 months ago
JSON representation

A starter project to quickly create nativescript angular project with drawer pages.

Awesome Lists containing this project

README

        

# Nativescript-Angular-Drawer-Template
A starter template to quickly create nativescript angular projects with drawer pages.

## Usage
`tns create my-project-name --template nativescript-angular-drawer-template`

## Preview
### Android
![android-preview](http://ngxp.io/wp-content/product-previews/nativescript-angular-drawer-template/ns-ng-drawer-template-android.gif)

### iOS
![ios-preview](http://ngxp.io/wp-content/product-previews/nativescript-angular-drawer-template/ns-ng-drawer-template-ios.gif)

## How To Change Menu Items
You can change the menu items of drawer from `app/modules/shared/side-drawer-page/side-drawer-page.component.ts` file as shown below:

```
navMenu: any[] = [
{ name: 'Home', commands: ['/'] },
{ name: 'About', commands: ['/about'] },
{ name: 'Contact', commands: ['/contact'] }
];
```

## How To Create New Page
You just need to wrap the content template of the new page inside `` tag as shown below:

```



```
You can refer home, contact or about sample modules for reference.