Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(package): added
mat-jumbotron-content
component
- Loading branch information
1 parent
1160b8e
commit 1a187fd
Showing
4 changed files
with
48 additions
and
0 deletions.
There are no files selected for viewing
3 changes: 3 additions & 0 deletions
3
src/module/component/mat-jumbotron/content/mat-jumbotron-content.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 @@ | ||
<ng-template> | ||
<ng-content></ng-content> | ||
</ng-template> |
Empty file.
25 changes: 25 additions & 0 deletions
25
src/module/component/mat-jumbotron/content/mat-jumbotron-content.component.spec.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,25 @@ | ||
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; | ||
|
||
import { MatJumbotronContentComponent } from './mat-jumbotron-content.component'; | ||
|
||
describe('MatJumbotronContentComponent', () => { | ||
let component: MatJumbotronContentComponent; | ||
let fixture: ComponentFixture<MatJumbotronContentComponent>; | ||
|
||
beforeEach(async(() => { | ||
TestBed.configureTestingModule({ | ||
declarations: [ MatJumbotronContentComponent ] | ||
}) | ||
.compileComponents(); | ||
})); | ||
|
||
beforeEach(() => { | ||
fixture = TestBed.createComponent(MatJumbotronContentComponent); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy(); | ||
}); | ||
}); |
20 changes: 20 additions & 0 deletions
20
src/module/component/mat-jumbotron/content/mat-jumbotron-content.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,20 @@ | ||
import {Component, OnInit, TemplateRef, ViewChild} from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'mat-jumbotron-content', | ||
templateUrl: './mat-jumbotron-content.component.html', | ||
styleUrls: ['./mat-jumbotron-content.component.scss'] | ||
}) | ||
export class MatJumbotronContentComponent implements OnInit { | ||
|
||
/** Template for page outlook content. */ | ||
@ViewChild(TemplateRef) | ||
content: TemplateRef<any>; | ||
|
||
constructor() { | ||
} | ||
|
||
ngOnInit() { | ||
} | ||
|
||
} |