docs(angular): add downgrade module docs (#12495)
This commit is contained in:
parent
7f9185efa0
commit
c697767b0f
@ -635,6 +635,7 @@
|
|||||||
},
|
},
|
||||||
"additionalProperties": false,
|
"additionalProperties": false,
|
||||||
"required": ["name", "project"],
|
"required": ["name", "project"],
|
||||||
|
"examplesFile": "## Examples\n\nBelow are some examples of how to generate configuration and setup for using `ngUpgrade`'s `DowngradeModule` for your application.\n\n{% tabs %}\n\n{% tab label=\"Basic Usage\" %}\n\n```bash\nnx g @nrwl/angular:downgrade-module --name=myAngularJsModule --project=myapp\n```\n\n{% /tab %}\n\n{% tab label=\"Setup Router\" %}\n\nAllow a setup that configures routing for `DowngradeModule`.\n\n```bash\nnx g @nrwl/angular:downgrade-module --name=myAngularJsModule --project=myapp --router=true\n```\n\n{% /tab %}\n\n{% /tabs %}\n",
|
||||||
"presets": []
|
"presets": []
|
||||||
},
|
},
|
||||||
"description": "Sets up a Downgrade Module.",
|
"description": "Sets up a Downgrade Module.",
|
||||||
|
|||||||
25
packages/angular/docs/downgrade-module-examples.md
Normal file
25
packages/angular/docs/downgrade-module-examples.md
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
## Examples
|
||||||
|
|
||||||
|
Below are some examples of how to generate configuration and setup for using `ngUpgrade`'s `DowngradeModule` for your application.
|
||||||
|
|
||||||
|
{% tabs %}
|
||||||
|
|
||||||
|
{% tab label="Basic Usage" %}
|
||||||
|
|
||||||
|
```bash
|
||||||
|
nx g @nrwl/angular:downgrade-module --name=myAngularJsModule --project=myapp
|
||||||
|
```
|
||||||
|
|
||||||
|
{% /tab %}
|
||||||
|
|
||||||
|
{% tab label="Setup Router" %}
|
||||||
|
|
||||||
|
Allow a setup that configures routing for `DowngradeModule`.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
nx g @nrwl/angular:downgrade-module --name=myAngularJsModule --project=myapp --router=true
|
||||||
|
```
|
||||||
|
|
||||||
|
{% /tab %}
|
||||||
|
|
||||||
|
{% /tabs %}
|
||||||
@ -34,5 +34,6 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"additionalProperties": false,
|
"additionalProperties": false,
|
||||||
"required": ["name", "project"]
|
"required": ["name", "project"],
|
||||||
|
"examplesFile": "../../../docs/downgrade-module-examples.md"
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user