# @codemirror/lang-angular [![NPM version](https://img.shields.io/npm/v/@codemirror/lang-angular.svg)](https://www.npmjs.org/package/@codemirror/lang-angular) [ [**WEBSITE**](https://codemirror.net/) | [**ISSUES**](https://github.com/codemirror/dev/issues) | [**FORUM**](https://discuss.codemirror.net/c/next/) | [**CHANGELOG**](https://github.com/codemirror/lang-angular/blob/main/CHANGELOG.md) ] This package implements Angular Template language support for the [CodeMirror](https://codemirror.net/) code editor. The [project page](https://codemirror.net/) has more information, a number of [examples](https://codemirror.net/examples/) and the [documentation](https://codemirror.net/docs/). This code is released under an [MIT license](https://github.com/codemirror/lang-json/tree/main/LICENSE). We aim to be an inclusive, welcoming community. To make that explicit, we have a [code of conduct](http://contributor-covenant.org/version/1/1/0/) that applies to communication around the project. ## Usage ```javascript import {EditorView, basicSetup} from "codemirror" import {angular} from "@codemirror/lang-angular" const view = new EditorView({ parent: document.body, doc: `

Hi {{ name }}

`, extensions: [basicSetup, angular()] }) ``` ## API Reference
angular(config⁠?: Object = {}) → LanguageSupport

Angular Template language support.

config
base⁠?: LanguageSupport

Provide an HTML language configuration to use as a base. Must be the result of calling html() from @codemirror/lang-html, not just any LanguageSupport object.

angularLanguage: LRLanguage

A language provider for Angular Templates.