Skip to content
This repository has been archived by the owner on Jul 8, 2024. It is now read-only.

Commit

Permalink
feat: add boilerplate app
Browse files Browse the repository at this point in the history
  • Loading branch information
abdul-akibu committed Aug 28, 2019
1 parent 9da30af commit 45e750e
Show file tree
Hide file tree
Showing 6 changed files with 47 additions and 5 deletions.
7 changes: 3 additions & 4 deletions templates/library-package/public-api.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//This defines what is available to consumers of your library.
//Ex:
// export {
// HelloWorldComponent,
// } from './src/app/base-lib/hello-world.component';
export {
WelcomeComponent,
} from './src/app/base-lib/welcome/welcome.component';
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<h1>
Welcome!
</h1>
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
app-welcome {

.h1 {
color: blue;
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/** welcome screen for the tenant creation process */

import {Component, OnInit} from '@angular/core';

@Component({
selector: 'app-welcome',
templateUrl: './welcome.component.html',
styleUrls: ['./welcome.component.scss'],
})
export class WelcomeComponent implements OnInit {
constructor() {}

ngOnInit() {
console.log('Hello World!')
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import {NgModule} from '@angular/core';
import {CommonModule} from '@angular/common';
import {UIRouterModule} from '@uirouter/angular';
import {WelcomeComponent} from './welcome.component';

@NgModule({
imports: [CommonModule, UIRouterModule],
providers: [],
declarations: [WelcomeComponent],
exports: [WelcomeComponent],
})
export class WelcomeModule {}
6 changes: 5 additions & 1 deletion templates/library-package/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
// Shim for class decorators
import 'reflect-metadata';
import 'reflect-metadata';

export {
WelcomeComponent,
} from './app/base-lib/welcome/welcome.component';

0 comments on commit 45e750e

Please sign in to comment.