Skip to content

Instantly share code, notes, and snippets.

@anfibiacreativa
Created July 8, 2020 20:17
Show Gist options
  • Save anfibiacreativa/72531fb1575713926dccba71034ab556 to your computer and use it in GitHub Desktop.
Save anfibiacreativa/72531fb1575713926dccba71034ab556 to your computer and use it in GitHub Desktop.
import { Component, OnInit } from '@angular/core';
import { ScullyRoutesService } from '@scullyio/ng-lib';
import { Observable } from 'rxjs';
@Component({
selector: 'app-sidenav',
templateUrl: './sidenav.component.html',
styleUrls: ['./sidenav.component.scss']
})
export class SidenavComponent implements OnInit {
docs$: Observable<any> = this.scully.available$;
constructor(
private scully: ScullyRoutesService
) { }
ngOnInit(): void {
this.docs$.subscribe(docs => {
console.log(docs);
});
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment