Skip to content

Instantly share code, notes, and snippets.

Created Aug 2, 2021
What would you like to do?
media getter accessor
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