Skip to content

Commit 72186c8

Browse files
committed
feat(ngx-material-pages): added page outlook component
1 parent 412f5ab commit 72186c8

File tree

4 files changed

+51
-0
lines changed

4 files changed

+51
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<ng-template>
2+
<ng-content></ng-content>
3+
</ng-template>

src/module/ngx-material-pages/ngx-material-page-outlook/ngx-material-page-outlook.component.scss

Whitespace-only changes.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
2+
3+
import { NgxMaterialPageOutlookComponent } from './ngx-material-page-outlook.component';
4+
5+
describe('NgxMaterialPageOutlookComponent', () => {
6+
let component: NgxMaterialPageOutlookComponent;
7+
let fixture: ComponentFixture<NgxMaterialPageOutlookComponent>;
8+
9+
beforeEach(async(() => {
10+
TestBed.configureTestingModule({
11+
declarations: [ NgxMaterialPageOutlookComponent ]
12+
})
13+
.compileComponents();
14+
}));
15+
16+
beforeEach(() => {
17+
fixture = TestBed.createComponent(NgxMaterialPageOutlookComponent);
18+
component = fixture.componentInstance;
19+
fixture.detectChanges();
20+
});
21+
22+
it('should create', () => {
23+
expect(component).toBeTruthy();
24+
});
25+
});
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
import {ChangeDetectionStrategy, Component, Directive, forwardRef, OnInit, TemplateRef, ViewChild, ViewEncapsulation} from '@angular/core';
2+
3+
4+
@Component({
5+
selector: 'ngx-material-page-outlook',
6+
templateUrl: './ngx-material-page-outlook.component.html',
7+
styleUrls: ['./ngx-material-page-outlook.component.scss'],
8+
encapsulation: ViewEncapsulation.None,
9+
changeDetection: ChangeDetectionStrategy.OnPush,
10+
11+
})
12+
export class NgxMaterialPageOutlookComponent implements OnInit {
13+
14+
/** Template for page outlook content. */
15+
@ViewChild(TemplateRef) content: TemplateRef<any>;
16+
17+
constructor() {
18+
}
19+
20+
ngOnInit() {
21+
}
22+
23+
}

0 commit comments

Comments
 (0)