ipsos-components
Version:
Material Design components for Angular
23 lines (19 loc) • 583 B
text/typescript
import {Component} from '@angular/core';
import {FormBuilder, FormGroup} from '@angular/forms';
/** @title Fixed sidenav */
({
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({
'fixed': false,
'top': 0,
'bottom': 0,
});
}
shouldRun = [/(^|\.)plnkr\.co$/, /(^|\.)stackblitz\.io$/].some(h => h.test(window.location.host));
}