
Product
Announcing Socket Fix 2.0
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
@codemirror/lang-angular
Advanced tools
Angular Template language support for the CodeMirror code editor
[ WEBSITE | ISSUES | FORUM | CHANGELOG ]
This package implements Angular Template language support for the CodeMirror code editor.
The project page has more information, a number of examples and the documentation.
This code is released under an MIT license.
We aim to be an inclusive, welcoming community. To make that explicit, we have a code of conduct that applies to communication around the project.
import {EditorView, basicSetup} from "codemirror"
import {angular} from "@codemirror/lang-angular"
const view = new EditorView({
parent: document.body,
doc: `<p ng-init="name='Iris'">Hi {{ name }}</p>`,
extensions: [basicSetup, angular()]
})
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.
0.1.4 (2025-04-25)
Allow self-closing XML-style tags.
FAQs
Angular Template language support for the CodeMirror code editor
The npm package @codemirror/lang-angular receives a total of 219,929 weekly downloads. As such, @codemirror/lang-angular popularity was classified as popular.
We found that @codemirror/lang-angular demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.