Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save DanJFletcher/fc7a798d6805a1e5471a2d890c898446 to your computer and use it in GitHub Desktop.
Save DanJFletcher/fc7a798d6805a1e5471a2d890c898446 to your computer and use it in GitHub Desktop.
public function make(): Menu {
this.apollo.watchQuery<{}>({
query: mainNavigationQuery
})
.valueChanges
.subscribe({ data } => {
// build the menu object from data and return the result
return this.build(data);
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment