docs(core): fix import paths in standalone tutorials (#14797)
This commit is contained in:
parent
4ff59ff3cb
commit
b85f9de9e7
@ -63,7 +63,7 @@ Configure the routes:
|
|||||||
import { NgModule } from '@angular/core';
|
import { NgModule } from '@angular/core';
|
||||||
import { BrowserModule } from '@angular/platform-browser';
|
import { BrowserModule } from '@angular/platform-browser';
|
||||||
import { RouterModule } from '@angular/router';
|
import { RouterModule } from '@angular/router';
|
||||||
import { SharedUiModule } from '@store/shared/ui';
|
import { SharedUiModule } from 'shared/ui';
|
||||||
|
|
||||||
import { AppComponent } from './app.component';
|
import { AppComponent } from './app.component';
|
||||||
import { NxWelcomeComponent } from './nx-welcome.component';
|
import { NxWelcomeComponent } from './nx-welcome.component';
|
||||||
@ -152,7 +152,7 @@ import { NgModule } from '@angular/core';
|
|||||||
import { CommonModule } from '@angular/common';
|
import { CommonModule } from '@angular/common';
|
||||||
import { RouterModule } from '@angular/router';
|
import { RouterModule } from '@angular/router';
|
||||||
import { CartRouteComponent } from './cart-route/cart-route.component';
|
import { CartRouteComponent } from './cart-route/cart-route.component';
|
||||||
import { SharedUiModule } from '@store/shared/ui';
|
import { SharedUiModule } from 'shared/ui';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
declarations: [CartRouteComponent],
|
declarations: [CartRouteComponent],
|
||||||
|
|||||||
@ -59,7 +59,7 @@ Nx has two main goals:
|
|||||||
- **Speed up your existing workflow with minimum effort.**
|
- **Speed up your existing workflow with minimum effort.**
|
||||||
- **Provide a first-rate developer experience no matter the size of the repo.**
|
- **Provide a first-rate developer experience no matter the size of the repo.**
|
||||||
|
|
||||||
It achieves speed that via [computation caching](/core-features/cache-task-results), by only [run tasks affected by a given change](/core-features/run-tasks#run-tasks-affected-by-a-pr) and by being able to [distribute your task execution](/core-features/distribute-task-execution) across multiple agents in CI.
|
It achieves that speed via [computation caching](/core-features/cache-task-results), by only [run tasks affected by a given change](/core-features/run-tasks#run-tasks-affected-by-a-pr) and by being able to [distribute your task execution](/core-features/distribute-task-execution) across multiple agents in CI.
|
||||||
|
|
||||||
High quality DX is implemented via [code generators](/plugin-features/use-code-generators), [IDE extensions](/core-features/integrate-with-editors#integrate-with-editors) and by helping you [keep your codebase evergreen](/core-features/automate-updating-dependencies).
|
High quality DX is implemented via [code generators](/plugin-features/use-code-generators), [IDE extensions](/core-features/integrate-with-editors#integrate-with-editors) and by helping you [keep your codebase evergreen](/core-features/automate-updating-dependencies).
|
||||||
|
|
||||||
|
|||||||
@ -85,7 +85,7 @@ root.render(
|
|||||||
```
|
```
|
||||||
|
|
||||||
```javascript {% fileName="src/app/app.tsx" %}
|
```javascript {% fileName="src/app/app.tsx" %}
|
||||||
import { RoutesCart } from '@store/cart';
|
import { RoutesCart } from 'cart';
|
||||||
import { Route, Routes } from 'react-router-dom';
|
import { Route, Routes } from 'react-router-dom';
|
||||||
import Shop from './shop/shop';
|
import Shop from './shop/shop';
|
||||||
|
|
||||||
@ -136,7 +136,7 @@ export default Banner;
|
|||||||
Add the `Banner` component to the cart route and link back to the main page:
|
Add the `Banner` component to the cart route and link back to the main page:
|
||||||
|
|
||||||
```javascript {% fileName="cart/src/lib/cart.tsx" %}
|
```javascript {% fileName="cart/src/lib/cart.tsx" %}
|
||||||
import { Banner } from '@store/shared/ui';
|
import { Banner } from 'shared/ui';
|
||||||
import { Link } from 'react-router-dom';
|
import { Link } from 'react-router-dom';
|
||||||
import styles from './cart.module.css';
|
import styles from './cart.module.css';
|
||||||
|
|
||||||
@ -160,7 +160,7 @@ export default RoutesCart;
|
|||||||
Update the `shop` component to use the `Banner` component and link to the cart.
|
Update the `shop` component to use the `Banner` component and link to the cart.
|
||||||
|
|
||||||
```javascript {% fileName="src/app/shop/shop.tsx" %}
|
```javascript {% fileName="src/app/shop/shop.tsx" %}
|
||||||
import { Banner } from '@store/shared/ui';
|
import { Banner } from 'shared/ui';
|
||||||
import { Link } from 'react-router-dom';
|
import { Link } from 'react-router-dom';
|
||||||
import styles from './shop.module.css';
|
import styles from './shop.module.css';
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user