diff --git a/adev/shared-docs/components/viewers/example-viewer/example-viewer.component.html b/adev/shared-docs/components/viewers/example-viewer/example-viewer.component.html index 76de5e30765..2e73481c2ee 100644 --- a/adev/shared-docs/components/viewers/example-viewer/example-viewer.component.html +++ b/adev/shared-docs/components/viewers/example-viewer/example-viewer.component.html @@ -1,20 +1,15 @@
- @if (showCode()) { - @if (view() === CodeExampleViewMode.SNIPPET) { - {{ exampleMetadata()?.title }} - } + @if (view() === CodeExampleViewMode.SNIPPET) { + {{ exampleMetadata()?.title }} + } - @if (view() === CodeExampleViewMode.MULTI_FILE) { - - @for (tab of tabs(); track tab) { - - } - - } - } @else { - - + @if (view() === CodeExampleViewMode.MULTI_FILE) { + + @for (tab of tabs(); track tab) { + + } + }
diff --git a/adev/src/content/tools/language-service.md b/adev/src/content/tools/language-service.md index ea2b16e56f1..973939358ab 100644 --- a/adev/src/content/tools/language-service.md +++ b/adev/src/content/tools/language-service.md @@ -136,10 +136,10 @@ Either directly install the "Eclipse IDE for Web and JavaScript developers" pack The Angular Language Service uses the tsserver, which doesn't follow the LSP specifications exactly. Therefore if you are using neovim or vim with JavaScript or TypeScript or Angular you may find that [Conquer of Completion](https://github.com/neoclide/coc.nvim) (COC) has the fullest implementation of the Angular Language Service and the tsserver. This is because COC ports the VSCode implementation of the tsserver which accommodates the tsserver's implementation. 1. [Setup coc.nvim](https://github.com/neoclide/coc.nvim) - + 2. Configure the Angular Language Service - Once installed run the `CocConfig` vim command line command to open the config file `coc-settings.json` and add the angular property. + Once installed run the `CocConfig` vim command line command to open the config file `coc-settings.json` and add the angular property. Make sure to substitute the correct paths to your global `node_modules` such that they go to directories which contain `tsserver` and the `ngserver` respectively.