From 9ba6c9fa486360d31b75c391a3d94e523c7b67ef Mon Sep 17 00:00:00 2001 From: Arman Ozak Date: Mon, 29 Jun 2020 21:35:45 +0300 Subject: [PATCH] docs: use js for highlighting --- docs/en/UI/Angular/List-Service.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/en/UI/Angular/List-Service.md b/docs/en/UI/Angular/List-Service.md index 6d16b73ae8..900606d725 100644 --- a/docs/en/UI/Angular/List-Service.md +++ b/docs/en/UI/Angular/List-Service.md @@ -73,7 +73,7 @@ Bind `ListService` to ngx-datatable like this: You may use observables in combination with [AsyncPipe](https://angular.io/guide/observables-in-angular#async-pipe) of Angular instead. Here are some possibilities: -```ts +```js book$ = this.list.hookToQuery(query => this.bookService.getListByInput(query)); ``` @@ -95,7 +95,7 @@ You may use observables in combination with [AsyncPipe](https://angular.io/guide ...or... -```ts +```js @Select(BookState.getBooks) books$: Observable; @@ -127,7 +127,7 @@ You may use observables in combination with [AsyncPipe](https://angular.io/guide `ListService` exposes a `get` method to trigger a request with the current query. So, basically, whenever a create, update, or delete action resolves, you can call `this.list.get();` and it will call hooked stream creator again. -```ts +```js this.bookService.createByInput(form.value) .subscribe(() => { this.list.get(); @@ -138,7 +138,7 @@ You may use observables in combination with [AsyncPipe](https://angular.io/guide ...or... -```ts +```js this.store.dispatch(new DeleteBook(id)).subscribe(this.list.get); ```