├── .gitignore
├── modules
├── shared
│ ├── side-drawer-page
│ │ ├── index.ts
│ │ ├── side-drawer-page.component.css
│ │ ├── side-drawer-page.component.html
│ │ └── side-drawer-page.component.ts
│ ├── index.ts
│ ├── shared.module.ts
│ └── borderless-btn.directive.ts
├── app.component.ts
├── about
│ ├── about.component.html
│ └── about.component.ts
├── home
│ ├── home.component.html
│ └── home.component.ts
├── contact
│ ├── contact.component.html
│ └── contact.component.ts
├── app-routing.module.ts
└── app.module.ts
├── App_Resources
├── iOS
│ ├── Assets.xcassets
│ │ ├── Contents.json
│ │ ├── AppIcon.appiconset
│ │ │ ├── icon-29.png
│ │ │ ├── icon-40.png
│ │ │ ├── icon-50.png
│ │ │ ├── icon-57.png
│ │ │ ├── icon-72.png
│ │ │ ├── icon-76.png
│ │ │ ├── icon-29@2x.png
│ │ │ ├── icon-29@3x.png
│ │ │ ├── icon-40@2x.png
│ │ │ ├── icon-40@3x.png
│ │ │ ├── icon-50@2x.png
│ │ │ ├── icon-57@2x.png
│ │ │ ├── icon-60@2x.png
│ │ │ ├── icon-60@3x.png
│ │ │ ├── icon-72@2x.png
│ │ │ ├── icon-76@2x.png
│ │ │ ├── icon-83.5@2x.png
│ │ │ └── Contents.json
│ │ ├── ic_menu_black.imageset
│ │ │ ├── ic_menu.png
│ │ │ ├── ic_menu_2x.png
│ │ │ ├── ic_menu_3x.png
│ │ │ └── Contents.json
│ │ ├── LaunchImage.launchimage
│ │ │ ├── Default.png
│ │ │ ├── Default@2x.png
│ │ │ ├── Default-568h@2x.png
│ │ │ ├── Default-667h@2x.png
│ │ │ ├── Default-736h@3x.png
│ │ │ ├── Default-Portrait.png
│ │ │ ├── Default-Landscape.png
│ │ │ ├── Default-Portrait@2x.png
│ │ │ ├── Default-Landscape@2x.png
│ │ │ ├── Default-Landscape@3x.png
│ │ │ └── Contents.json
│ │ ├── LaunchScreen.Center.imageset
│ │ │ ├── LaunchScreen-Center.png
│ │ │ ├── LaunchScreen-Center@2x.png
│ │ │ └── Contents.json
│ │ └── LaunchScreen.AspectFill.imageset
│ │ │ ├── LaunchScreen-AspectFill.png
│ │ │ ├── LaunchScreen-AspectFill@2x.png
│ │ │ └── Contents.json
│ ├── build.xcconfig
│ ├── Info.plist
│ └── LaunchScreen.storyboard
└── Android
│ ├── values-v21
│ ├── colors.xml
│ └── styles.xml
│ ├── drawable-hdpi
│ ├── icon.png
│ ├── logo.png
│ ├── background.png
│ └── ic_menu_black.png
│ ├── drawable-ldpi
│ ├── icon.png
│ ├── logo.png
│ └── background.png
│ ├── drawable-mdpi
│ ├── icon.png
│ ├── logo.png
│ ├── background.png
│ └── ic_menu_black.png
│ ├── drawable-xhdpi
│ ├── icon.png
│ ├── logo.png
│ ├── background.png
│ └── ic_menu_black.png
│ ├── drawable-xxhdpi
│ ├── icon.png
│ ├── logo.png
│ ├── background.png
│ └── ic_menu_black.png
│ ├── drawable-xxxhdpi
│ ├── icon.png
│ ├── logo.png
│ ├── background.png
│ └── ic_menu_black.png
│ ├── values
│ ├── colors.xml
│ └── styles.xml
│ ├── drawable-nodpi
│ └── splash_screen.xml
│ ├── app.gradle
│ └── AndroidManifest.xml
├── main.ts
├── app.css
├── LICENSE
├── README.md
└── package.json
/.gitignore:
--------------------------------------------------------------------------------
1 | **/*.js.map
2 | **/*.js
3 |
--------------------------------------------------------------------------------
/modules/shared/side-drawer-page/index.ts:
--------------------------------------------------------------------------------
1 | export * from './side-drawer-page.component';
2 |
--------------------------------------------------------------------------------
/App_Resources/iOS/Assets.xcassets/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "info" : {
3 | "version" : 1,
4 | "author" : "xcode"
5 | }
6 | }
--------------------------------------------------------------------------------
/modules/shared/index.ts:
--------------------------------------------------------------------------------
1 | export * from './shared.module';
2 | export * from './side-drawer-page';
3 | export * from './borderless-btn.directive';
4 |
--------------------------------------------------------------------------------
/App_Resources/Android/values-v21/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #3d5afe
4 |
--------------------------------------------------------------------------------
/App_Resources/Android/drawable-hdpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shripalsoni04/nativescript-angular-drawer-template/HEAD/App_Resources/Android/drawable-hdpi/icon.png
--------------------------------------------------------------------------------
/App_Resources/Android/drawable-hdpi/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shripalsoni04/nativescript-angular-drawer-template/HEAD/App_Resources/Android/drawable-hdpi/logo.png
--------------------------------------------------------------------------------
/App_Resources/Android/drawable-ldpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shripalsoni04/nativescript-angular-drawer-template/HEAD/App_Resources/Android/drawable-ldpi/icon.png
--------------------------------------------------------------------------------
/App_Resources/Android/drawable-ldpi/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shripalsoni04/nativescript-angular-drawer-template/HEAD/App_Resources/Android/drawable-ldpi/logo.png
--------------------------------------------------------------------------------
/App_Resources/Android/drawable-mdpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shripalsoni04/nativescript-angular-drawer-template/HEAD/App_Resources/Android/drawable-mdpi/icon.png
--------------------------------------------------------------------------------
/App_Resources/Android/drawable-mdpi/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shripalsoni04/nativescript-angular-drawer-template/HEAD/App_Resources/Android/drawable-mdpi/logo.png
--------------------------------------------------------------------------------
/App_Resources/Android/drawable-xhdpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shripalsoni04/nativescript-angular-drawer-template/HEAD/App_Resources/Android/drawable-xhdpi/icon.png
--------------------------------------------------------------------------------
/App_Resources/Android/drawable-xhdpi/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shripalsoni04/nativescript-angular-drawer-template/HEAD/App_Resources/Android/drawable-xhdpi/logo.png
--------------------------------------------------------------------------------
/App_Resources/Android/drawable-xxhdpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shripalsoni04/nativescript-angular-drawer-template/HEAD/App_Resources/Android/drawable-xxhdpi/icon.png
--------------------------------------------------------------------------------
/App_Resources/Android/drawable-xxhdpi/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shripalsoni04/nativescript-angular-drawer-template/HEAD/App_Resources/Android/drawable-xxhdpi/logo.png
--------------------------------------------------------------------------------
/App_Resources/Android/drawable-xxxhdpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shripalsoni04/nativescript-angular-drawer-template/HEAD/App_Resources/Android/drawable-xxxhdpi/icon.png
--------------------------------------------------------------------------------
/App_Resources/Android/drawable-xxxhdpi/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shripalsoni04/nativescript-angular-drawer-template/HEAD/App_Resources/Android/drawable-xxxhdpi/logo.png
--------------------------------------------------------------------------------
/App_Resources/Android/drawable-hdpi/background.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shripalsoni04/nativescript-angular-drawer-template/HEAD/App_Resources/Android/drawable-hdpi/background.png
--------------------------------------------------------------------------------
/App_Resources/Android/drawable-ldpi/background.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shripalsoni04/nativescript-angular-drawer-template/HEAD/App_Resources/Android/drawable-ldpi/background.png
--------------------------------------------------------------------------------
/App_Resources/Android/drawable-mdpi/background.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shripalsoni04/nativescript-angular-drawer-template/HEAD/App_Resources/Android/drawable-mdpi/background.png
--------------------------------------------------------------------------------
/App_Resources/Android/drawable-xhdpi/background.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shripalsoni04/nativescript-angular-drawer-template/HEAD/App_Resources/Android/drawable-xhdpi/background.png
--------------------------------------------------------------------------------
/App_Resources/Android/drawable-hdpi/ic_menu_black.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shripalsoni04/nativescript-angular-drawer-template/HEAD/App_Resources/Android/drawable-hdpi/ic_menu_black.png
--------------------------------------------------------------------------------
/App_Resources/Android/drawable-mdpi/ic_menu_black.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shripalsoni04/nativescript-angular-drawer-template/HEAD/App_Resources/Android/drawable-mdpi/ic_menu_black.png
--------------------------------------------------------------------------------
/App_Resources/Android/drawable-xxhdpi/background.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shripalsoni04/nativescript-angular-drawer-template/HEAD/App_Resources/Android/drawable-xxhdpi/background.png
--------------------------------------------------------------------------------
/App_Resources/Android/drawable-xxxhdpi/background.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shripalsoni04/nativescript-angular-drawer-template/HEAD/App_Resources/Android/drawable-xxxhdpi/background.png
--------------------------------------------------------------------------------
/App_Resources/Android/drawable-xhdpi/ic_menu_black.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shripalsoni04/nativescript-angular-drawer-template/HEAD/App_Resources/Android/drawable-xhdpi/ic_menu_black.png
--------------------------------------------------------------------------------
/App_Resources/Android/drawable-xxhdpi/ic_menu_black.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shripalsoni04/nativescript-angular-drawer-template/HEAD/App_Resources/Android/drawable-xxhdpi/ic_menu_black.png
--------------------------------------------------------------------------------
/App_Resources/Android/drawable-xxxhdpi/ic_menu_black.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shripalsoni04/nativescript-angular-drawer-template/HEAD/App_Resources/Android/drawable-xxxhdpi/ic_menu_black.png
--------------------------------------------------------------------------------
/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shripalsoni04/nativescript-angular-drawer-template/HEAD/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29.png
--------------------------------------------------------------------------------
/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shripalsoni04/nativescript-angular-drawer-template/HEAD/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40.png
--------------------------------------------------------------------------------
/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-50.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shripalsoni04/nativescript-angular-drawer-template/HEAD/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-50.png
--------------------------------------------------------------------------------
/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-57.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shripalsoni04/nativescript-angular-drawer-template/HEAD/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-57.png
--------------------------------------------------------------------------------
/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-72.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shripalsoni04/nativescript-angular-drawer-template/HEAD/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-72.png
--------------------------------------------------------------------------------
/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shripalsoni04/nativescript-angular-drawer-template/HEAD/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76.png
--------------------------------------------------------------------------------
/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shripalsoni04/nativescript-angular-drawer-template/HEAD/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@2x.png
--------------------------------------------------------------------------------
/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shripalsoni04/nativescript-angular-drawer-template/HEAD/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@3x.png
--------------------------------------------------------------------------------
/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shripalsoni04/nativescript-angular-drawer-template/HEAD/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@2x.png
--------------------------------------------------------------------------------
/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shripalsoni04/nativescript-angular-drawer-template/HEAD/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@3x.png
--------------------------------------------------------------------------------
/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-50@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shripalsoni04/nativescript-angular-drawer-template/HEAD/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-50@2x.png
--------------------------------------------------------------------------------
/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-57@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shripalsoni04/nativescript-angular-drawer-template/HEAD/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-57@2x.png
--------------------------------------------------------------------------------
/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shripalsoni04/nativescript-angular-drawer-template/HEAD/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@2x.png
--------------------------------------------------------------------------------
/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shripalsoni04/nativescript-angular-drawer-template/HEAD/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@3x.png
--------------------------------------------------------------------------------
/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-72@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shripalsoni04/nativescript-angular-drawer-template/HEAD/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-72@2x.png
--------------------------------------------------------------------------------
/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shripalsoni04/nativescript-angular-drawer-template/HEAD/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76@2x.png
--------------------------------------------------------------------------------
/App_Resources/iOS/Assets.xcassets/ic_menu_black.imageset/ic_menu.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shripalsoni04/nativescript-angular-drawer-template/HEAD/App_Resources/iOS/Assets.xcassets/ic_menu_black.imageset/ic_menu.png
--------------------------------------------------------------------------------
/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-83.5@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shripalsoni04/nativescript-angular-drawer-template/HEAD/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-83.5@2x.png
--------------------------------------------------------------------------------
/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shripalsoni04/nativescript-angular-drawer-template/HEAD/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default.png
--------------------------------------------------------------------------------
/App_Resources/iOS/Assets.xcassets/ic_menu_black.imageset/ic_menu_2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shripalsoni04/nativescript-angular-drawer-template/HEAD/App_Resources/iOS/Assets.xcassets/ic_menu_black.imageset/ic_menu_2x.png
--------------------------------------------------------------------------------
/App_Resources/iOS/Assets.xcassets/ic_menu_black.imageset/ic_menu_3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shripalsoni04/nativescript-angular-drawer-template/HEAD/App_Resources/iOS/Assets.xcassets/ic_menu_black.imageset/ic_menu_3x.png
--------------------------------------------------------------------------------
/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shripalsoni04/nativescript-angular-drawer-template/HEAD/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default@2x.png
--------------------------------------------------------------------------------
/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-568h@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shripalsoni04/nativescript-angular-drawer-template/HEAD/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-568h@2x.png
--------------------------------------------------------------------------------
/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-667h@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shripalsoni04/nativescript-angular-drawer-template/HEAD/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-667h@2x.png
--------------------------------------------------------------------------------
/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-736h@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shripalsoni04/nativescript-angular-drawer-template/HEAD/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-736h@3x.png
--------------------------------------------------------------------------------
/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shripalsoni04/nativescript-angular-drawer-template/HEAD/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait.png
--------------------------------------------------------------------------------
/modules/app.component.ts:
--------------------------------------------------------------------------------
1 | import { Component } from "@angular/core";
2 |
3 | @Component({
4 | selector: "my-app",
5 | template: ''
6 | })
7 | export class AppComponent {
8 |
9 | }
10 |
--------------------------------------------------------------------------------
/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shripalsoni04/nativescript-angular-drawer-template/HEAD/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape.png
--------------------------------------------------------------------------------
/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shripalsoni04/nativescript-angular-drawer-template/HEAD/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait@2x.png
--------------------------------------------------------------------------------
/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shripalsoni04/nativescript-angular-drawer-template/HEAD/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@2x.png
--------------------------------------------------------------------------------
/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shripalsoni04/nativescript-angular-drawer-template/HEAD/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@3x.png
--------------------------------------------------------------------------------
/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shripalsoni04/nativescript-angular-drawer-template/HEAD/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center.png
--------------------------------------------------------------------------------
/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shripalsoni04/nativescript-angular-drawer-template/HEAD/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center@2x.png
--------------------------------------------------------------------------------
/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shripalsoni04/nativescript-angular-drawer-template/HEAD/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill.png
--------------------------------------------------------------------------------
/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shripalsoni04/nativescript-angular-drawer-template/HEAD/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill@2x.png
--------------------------------------------------------------------------------
/App_Resources/Android/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #F5F5F5
4 | #757575
5 | #33B5E5
6 | #272734
7 |
--------------------------------------------------------------------------------
/main.ts:
--------------------------------------------------------------------------------
1 | // this import should be first in order to load some required settings (like globals and reflect-metadata)
2 | import { platformNativeScriptDynamic } from "nativescript-angular/platform";
3 |
4 | import { AppModule } from "./modules/app.module";
5 |
6 | platformNativeScriptDynamic().bootstrapModule(AppModule);
--------------------------------------------------------------------------------
/modules/about/about.component.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/modules/home/home.component.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/modules/contact/contact.component.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/modules/home/home.component.ts:
--------------------------------------------------------------------------------
1 | import { Component, ChangeDetectionStrategy } from '@angular/core';
2 |
3 | @Component({
4 | selector: 'home',
5 | templateUrl: 'modules/home/home.component.html',
6 | changeDetection: ChangeDetectionStrategy.OnPush
7 | })
8 | export class HomeComponent {
9 | text: string = 'Home Page';
10 | }
11 |
--------------------------------------------------------------------------------
/modules/about/about.component.ts:
--------------------------------------------------------------------------------
1 | import { Component, ChangeDetectionStrategy } from '@angular/core';
2 |
3 | @Component({
4 | selector: 'about',
5 | templateUrl: 'modules/about/about.component.html',
6 | changeDetection: ChangeDetectionStrategy.OnPush
7 | })
8 | export class AboutComponent {
9 | text: string = 'About Page';
10 | }
11 |
--------------------------------------------------------------------------------
/modules/contact/contact.component.ts:
--------------------------------------------------------------------------------
1 | import { Component, ChangeDetectionStrategy } from '@angular/core';
2 |
3 | @Component({
4 | selector: 'contact',
5 | templateUrl: 'modules/contact/contact.component.html',
6 | changeDetection: ChangeDetectionStrategy.OnPush
7 | })
8 | export class ContactComponent {
9 | text: string = 'Contact Page';
10 | }
11 |
--------------------------------------------------------------------------------
/App_Resources/Android/drawable-nodpi/splash_screen.xml:
--------------------------------------------------------------------------------
1 |
2 | -
3 |
4 |
5 | -
6 |
7 |
8 |
--------------------------------------------------------------------------------
/App_Resources/Android/app.gradle:
--------------------------------------------------------------------------------
1 | // Add your native dependencies here:
2 |
3 | // Uncomment to add recyclerview-v7 dependency
4 | //dependencies {
5 | // compile 'com.android.support:recyclerview-v7:+'
6 | //}
7 |
8 | android {
9 | defaultConfig {
10 | generatedDensities = []
11 | applicationId = "__PACKAGE__"
12 | }
13 | aaptOptions {
14 | additionalParameters "--no-version-vectors"
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "LaunchScreen-Center.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "filename" : "LaunchScreen-Center@2x.png",
11 | "scale" : "2x"
12 | },
13 | {
14 | "idiom" : "universal",
15 | "scale" : "3x"
16 | }
17 | ],
18 | "info" : {
19 | "version" : 1,
20 | "author" : "xcode"
21 | }
22 | }
--------------------------------------------------------------------------------
/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "LaunchScreen-AspectFill.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "filename" : "LaunchScreen-AspectFill@2x.png",
11 | "scale" : "2x"
12 | },
13 | {
14 | "idiom" : "universal",
15 | "scale" : "3x"
16 | }
17 | ],
18 | "info" : {
19 | "version" : 1,
20 | "author" : "xcode"
21 | }
22 | }
--------------------------------------------------------------------------------
/App_Resources/iOS/build.xcconfig:
--------------------------------------------------------------------------------
1 | // You can add custom settings here
2 | // for example you can uncomment the following line to force distribution code signing
3 | // CODE_SIGN_IDENTITY = iPhone Distribution
4 | // To build for device with XCode 8 you need to specify your development team. More info: https://developer.apple.com/library/prerelease/content/releasenotes/DeveloperTools/RN-Xcode/Introduction.html
5 | // DEVELOPMENT_TEAM = YOUR_TEAM_ID;
6 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
7 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
8 |
--------------------------------------------------------------------------------
/modules/shared/side-drawer-page/side-drawer-page.component.css:
--------------------------------------------------------------------------------
1 | .sidedrawer-header {
2 | padding-top: 25;
3 | padding-bottom: 25;
4 | background-color: #333;
5 | }
6 |
7 | .sidedrawer-header .sidedrawer-header-image {
8 | margin-bottom: 10
9 | }
10 |
11 | .sidedrawer-header .sidedrawer-header-brand {
12 | font-size: 18;
13 | color: #fff;
14 | }
15 |
16 | .sidedrawer-content .sidedrawer-list-item-text {
17 | color: #777;
18 | }
19 |
20 | .sidedrawer-list-item-text.borderless-btn {
21 | text-transform: capitalize;
22 | padding-right: 20%;
23 | width: 100%;
24 | border-width: 0;
25 | }
26 |
--------------------------------------------------------------------------------
/App_Resources/iOS/Assets.xcassets/ic_menu_black.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images": [
3 | {
4 | "filename": "ic_menu.png",
5 | "idiom": "universal",
6 | "scale": "1x"
7 | },
8 | {
9 | "filename": "ic_menu_2x.png",
10 | "idiom": "universal",
11 | "scale": "2x"
12 | },
13 | {
14 | "filename": "ic_menu_3x.png",
15 | "idiom": "universal",
16 | "scale": "3x"
17 | }
18 | ],
19 | "info": {
20 | "author": "xcode",
21 | "version": 1
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/app.css:
--------------------------------------------------------------------------------
1 | /*
2 | In NativeScript, the app.css file is where you place CSS rules that
3 | you would like to apply to your entire application. Check out
4 | http://docs.nativescript.org/ui/styling for a full list of the CSS
5 | selectors and properties you can use to style UI components.
6 | */
7 |
8 | /*
9 | In many cases you may want to use the NativeScript core theme instead
10 | of writing your own CSS rules. For a full list of class names in the theme
11 | refer to http://docs.nativescript.org/ui/theme.
12 | */
13 | @import 'nativescript-theme-core/css/core.light.css';
14 |
15 | .page-text {
16 | vertical-align: center;
17 | text-align: center;
18 | }
19 |
--------------------------------------------------------------------------------
/modules/app-routing.module.ts:
--------------------------------------------------------------------------------
1 | import { NgModule } from '@angular/core';
2 |
3 | import { NativeScriptRouterModule } from 'nativescript-angular/router';
4 |
5 | import { HomeComponent } from './home/home.component';
6 | import { AboutComponent } from './about/about.component';
7 | import { ContactComponent } from './contact/contact.component';
8 |
9 | @NgModule({
10 | imports: [
11 | NativeScriptRouterModule.forRoot([
12 | { path: '', component: HomeComponent },
13 | { path: 'about', component: AboutComponent },
14 | { path: 'contact', component: ContactComponent }
15 | ])
16 | ],
17 | exports: [NativeScriptRouterModule]
18 | })
19 | export class AppRoutingModule {
20 |
21 | }
22 |
--------------------------------------------------------------------------------
/modules/shared/shared.module.ts:
--------------------------------------------------------------------------------
1 | import { NgModule } from '@angular/core';
2 |
3 | import { NativeScriptModule } from 'nativescript-angular/nativescript.module';
4 | import { NativeScriptUISideDrawerModule } from 'nativescript-telerik-ui/sidedrawer/angular/side-drawer-directives';
5 |
6 | import { SideDrawerPageComponent } from './side-drawer-page';
7 | import { BorderlessBtnDirective } from './borderless-btn.directive';
8 |
9 | @NgModule({
10 | imports: [
11 | NativeScriptModule,
12 | NativeScriptUISideDrawerModule,
13 | ],
14 | declarations: [
15 | SideDrawerPageComponent,
16 | BorderlessBtnDirective
17 | ],
18 | exports: [
19 | SideDrawerPageComponent,
20 | BorderlessBtnDirective
21 | ]
22 | })
23 | export class SharedModule {
24 |
25 | }
26 |
--------------------------------------------------------------------------------
/modules/app.module.ts:
--------------------------------------------------------------------------------
1 | import { NgModule } from '@angular/core';
2 |
3 | import { NativeScriptModule } from 'nativescript-angular/nativescript.module';
4 |
5 | import { AppRoutingModule } from './app-routing.module';
6 | import { AppComponent } from './app.component';
7 | import { HomeComponent } from './home/home.component';
8 | import { AboutComponent } from './about/about.component';
9 | import { ContactComponent } from './contact/contact.component';
10 | import { SharedModule } from './shared';
11 |
12 | @NgModule({
13 | imports: [
14 | NativeScriptModule,
15 | AppRoutingModule,
16 | SharedModule
17 | ],
18 | declarations: [
19 | AppComponent,
20 | HomeComponent,
21 | AboutComponent,
22 | ContactComponent
23 | ],
24 | bootstrap: [AppComponent]
25 | })
26 | export class AppModule {
27 |
28 | }
29 |
--------------------------------------------------------------------------------
/App_Resources/Android/values-v21/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
9 |
10 |
11 |
14 |
15 |
16 |
19 |
20 |
23 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining a copy
4 | of this software and associated documentation files (the "Software"), to deal
5 | in the Software without restriction, including without limitation the rights
6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7 | copies of the Software, and to permit persons to whom the Software is
8 | furnished to do so, subject to the following conditions:
9 |
10 | The above copyright notice and this permission notice shall be included in all
11 | copies or substantial portions of the Software.
12 |
13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19 | SOFTWARE.
20 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Nativescript-Angular-Drawer-Template
2 | A starter template to quickly create nativescript angular projects with drawer pages.
3 |
4 | ## Usage
5 | `tns create my-project-name --template nativescript-angular-drawer-template`
6 |
7 | ## Preview
8 | ### Android
9 | 
10 |
11 | ### iOS
12 | 
13 |
14 | ## How To Change Menu Items
15 | You can change the menu items of drawer from `app/modules/shared/side-drawer-page/side-drawer-page.component.ts` file as shown below:
16 |
17 | ```
18 | navMenu: any[] = [
19 | { name: 'Home', commands: ['/'] },
20 | { name: 'About', commands: ['/about'] },
21 | { name: 'Contact', commands: ['/contact'] }
22 | ];
23 | ```
24 |
25 | ## How To Create New Page
26 | You just need to wrap the content template of the new page inside `` tag as shown below:
27 |
28 | ```
29 |
30 |
31 |
32 |
33 |
34 | ```
35 | You can refer home, contact or about sample modules for reference.
36 |
37 |
--------------------------------------------------------------------------------
/modules/shared/borderless-btn.directive.ts:
--------------------------------------------------------------------------------
1 | import { Directive, ElementRef, OnInit, OnDestroy } from '@angular/core';
2 |
3 | import { Button } from 'ui/button';
4 | import { isAndroid } from 'platform';
5 | import * as application from 'application';
6 |
7 | declare const android: any;
8 |
9 | /**
10 | * Android Only.
11 | *
12 | * Directive which removes border from the button when applied on android.
13 | */
14 | @Directive({
15 | selector: '.borderless-btn'
16 | })
17 | export class BorderlessBtnDirective implements OnInit, OnDestroy {
18 |
19 | private nsBtn: Button;
20 |
21 | constructor(private _el: ElementRef) { }
22 |
23 | setBorderlessBackground() {
24 | let outValue = new android.util.TypedValue();
25 | application.android.context.getTheme().resolveAttribute(
26 | android.R.attr.selectableItemBackground, outValue, true
27 | );
28 | this.nsBtn.android.setBackgroundResource(outValue.resourceId);
29 | }
30 |
31 | ngOnInit() {
32 | if (isAndroid) {
33 | this.nsBtn =