MCPcopy
hub / github.com/angular/angular / constructor

Method constructor

packages/platform-browser/src/browser.ts:300–315  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

298})
299export class BrowserModule {
300 constructor() {
301 if (typeof ngDevMode === 'undefined' || ngDevMode) {
302 const providersAlreadyPresent = inject(BROWSER_MODULE_PROVIDERS_MARKER, {
303 optional: true,
304 skipSelf: true,
305 });
306
307 if (providersAlreadyPresent) {
308 throw new RuntimeError(
309 RuntimeErrorCode.BROWSER_MODULE_ALREADY_LOADED,
310 `Providers from the \`BrowserModule\` have already been loaded. If you need access ` +
311 `to common directives such as NgIf and NgFor, import the \`CommonModule\` instead.`,
312 );
313 }
314 }
315 }
316}

Callers

nothing calls this directly

Calls 1

injectFunction · 0.90

Tested by

no test coverage detected