Skip to content

Instantly share code, notes, and snippets.

@DuncanFaulkner
Created Aug 2, 2021
Embed
What would you like to do?
media getter accessor
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css'],
})
export class AppComponent implements OnInit, OnDestroy {
title = 'Angular Flex-Layout';
get media() {
return this.mediaObserver;
}
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment