mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
The purpose of the changes is to clean all markdown to match a single pedantic style.
* To ensure all changes in style are properly separated.
* To ensure all styled content aligns to nearest 4-character-tab.
* To ensure all code blocks use the Angular `<code-example>` or `<code-tab>` elements.
* To ensure all markdown exists outside of html tags.
* To ensure all images use the Angular style for `<img>` elements.
* To ensure that all smart punctuation is replaced or removed.
```text
’, ’, “, ”, –, —, …
```
* To ensure all content does not conflict with the following reserved characters.
```text
@, $, *, &, #, |, <, >,
```
* To ensure all content displays using html entities.
The following changes were made to files in the following directory.
```text
aio/content
```
The target files were markdown files.
The list of excluded files:
```text
.browserslistrc, .css, .conf, .editorconfig, .gitignore, .html, .js, .json, .sh, .svg, .ts, .txt, .xlf,
```
PR Close #45325
42 lines
1.2 KiB
Markdown
42 lines
1.2 KiB
Markdown
@name Missing Reference Target
|
|
@category compiler
|
|
@videoUrl https://www.youtube.com/embed/fUSAg4kp2WQ
|
|
@shortDescription No directive found with export
|
|
|
|
@description
|
|
Angular can't find a directive with `{{ PLACEHOLDER }}` export name.
|
|
This is common with a missing import or a missing [`exportAs`](api/core/Directive#exportAs) on a directive.
|
|
|
|
<div class="alert is-helpful">
|
|
|
|
This is the compiler equivalent of a common runtime error [NG0301: Export Not Found](errors/NG0301).
|
|
|
|
</div>
|
|
|
|
@debugging
|
|
Use the string name of the export not found to trace the templates or modules using this export.
|
|
|
|
Ensure that all dependencies are properly imported and declared in our Modules.
|
|
For example, if the export not found is `ngForm`, we will need to import `FormsModule` and declare it in our list of imports in `*.module.ts` to resolve the missing export error.
|
|
|
|
<code-example format="typescript" language="typescript">
|
|
|
|
import { FormsModule } from '@angular/forms';
|
|
|
|
@NgModule({
|
|
…
|
|
imports: [
|
|
FormsModule,
|
|
…
|
|
|
|
</code-example>
|
|
|
|
If you recently added an import, you will need to restart your server to see these changes.
|
|
|
|
<!-- links -->
|
|
|
|
<!-- external links -->
|
|
|
|
<!-- end links -->
|
|
|
|
@reviewed 2022-02-28
|