mirror of
https://github.com/richard-loafle/fuse-angular.git
synced 2025-04-12 03:21:37 +00:00
23 lines
554 B
TypeScript
Executable File
23 lines
554 B
TypeScript
Executable File
import {Component} from '@angular/core';
|
|
import {FormBuilder, FormGroup} from '@angular/forms';
|
|
|
|
/** @title Fixed sidenav */
|
|
@Component({
|
|
selector: 'sidenav-fixed-example',
|
|
templateUrl: 'sidenav-fixed-example.html',
|
|
styleUrls: ['sidenav-fixed-example.css'],
|
|
})
|
|
export class SidenavFixedExample {
|
|
options: FormGroup;
|
|
|
|
constructor(fb: FormBuilder) {
|
|
this.options = fb.group({
|
|
bottom: 0,
|
|
fixed: false,
|
|
top: 0
|
|
});
|
|
}
|
|
|
|
shouldRun = [/(^|\.)plnkr\.co$/, /(^|\.)stackblitz\.io$/].some(h => h.test(window.location.host));
|
|
}
|