# @codemirror/lang-angular [](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 Referenceangular(config?: Object = {}) → LanguageSupportAngular Template language support.
configbase?: LanguageSupportProvide 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: LRLanguageA language provider for Angular Templates.