This repository has been archived by the owner on Jul 8, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9da30af
commit 45e750e
Showing
6 changed files
with
47 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'; |
3 changes: 3 additions & 0 deletions
3
templates/library-package/src/app/base-lib/welcome/welcome.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<h1> | ||
Welcome! | ||
</h1> |
7 changes: 7 additions & 0 deletions
7
templates/library-package/src/app/base-lib/welcome/welcome.component.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
app-welcome { | ||
|
||
.h1 { | ||
color: blue; | ||
} | ||
|
||
} |
17 changes: 17 additions & 0 deletions
17
templates/library-package/src/app/base-lib/welcome/welcome.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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!') | ||
} | ||
|
||
} |
12 changes: 12 additions & 0 deletions
12
templates/library-package/src/app/base-lib/welcome/welcome.module.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'; |