Skip to content

Instantly share code, notes, and snippets.

@arturovt
Created February 28, 2021 02:09
Show Gist options
  • Save arturovt/ae772d2354f93818ea5aa7097fbf1dcc to your computer and use it in GitHub Desktop.
Save arturovt/ae772d2354f93818ea5aa7097fbf1dcc to your computer and use it in GitHub Desktop.
class ArticleComponent {
constructor(t, e) {
this.article$ = t.params.pipe(
Object(i.a)(t => {
const o = Object(c.d)(`article:${t.id}`);
return e.get(o, null);
}),
);
}
}
ArticleComponent.ɵfac = function (t) {
return new (t || ArticleComponent)(l.Db(r.a), l.Db(c.c));
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment