Skip to content

Commit

Permalink
docs(ngx-components): describe how to use with standalone components (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
d-koppenhagen authored Feb 8, 2024
1 parent b816ee3 commit 729810a
Show file tree
Hide file tree
Showing 22 changed files with 130 additions and 132 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,15 @@ For general installation and configuration take a look at the [ngx-components](h

### Load component

```ts app.module.ts
//app.module.ts
```ts app.component.ts
// app.component.ts
import { DB<%= h.changeCase.pascal(name) %>Module } from '@db-ui/ngx-components';

@NgModule({
...
@Component({
// ...
imports: [..., DB<%= h.changeCase.pascal(name) %>Module],
...
// ...
})

```

### Use component
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,15 @@ For general installation and configuration take a look at the [ngx-components](h

### Load component

```ts app.module.ts
//app.module.ts
```ts app.component.ts
// app.component.ts
import { DB<%= h.changeCase.pascal(name) %>Module } from '@db-ui/ngx-components';

@NgModule({
...
@Component({
// ...
imports: [..., DB<%= h.changeCase.pascal(name) %>Module],
...
// ...
})

```

### Use component
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@ For general installation and configuration look at the [ngx-components](https://

### Load component

```ts app.module.ts
//app.module.ts
```ts app.component.ts
// app.component.ts
import { DBAccordionItemModule } from '@db-ui/ngx-components';

@NgModule({
...
@Component({
// ...
standalone: true,
imports: [..., DBAccordionItemModule],
...
// ...
})

```

### Use component
Expand Down
12 changes: 6 additions & 6 deletions packages/components/src/components/accordion/docs/Angular.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@ For general installation and configuration look at the [ngx-components](https://

### Load component

```ts app.module.ts
//app.module.ts
```ts app.component.ts
// app.component.ts
import { DBAccordionModule } from '@db-ui/ngx-components';

@NgModule({
...
@Component({
// ...
standalone: true,
imports: [..., DBAccordionModule],
...
// ...
})

```

### Use component
Expand Down
12 changes: 6 additions & 6 deletions packages/components/src/components/alert/docs/Angular.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@ For general installation and configuration take a look at the [ngx-components](h

### Load component

```ts app.module.ts
//app.module.ts
```ts app.component.ts
// app.component.ts
import { DBAlertModule } from '@db-ui/ngx-components';

@NgModule({
...
@Component({
// ...
standalone: true,
imports: [..., DBAlertModule],
...
// ...
})

```

### Use component
Expand Down
12 changes: 6 additions & 6 deletions packages/components/src/components/badge/docs/Angular.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@ For general installation and configuration take a look at the [ngx-components](h

### Load component

```ts app.module.ts
//app.module.ts
```ts app.component.ts
// app.component.ts
import { DBBadgeModule } from '@db-ui/ngx-components';

@NgModule({
...
@Component({
// ...
standalone: true,
imports: [..., DBBadgeModule],
...
// ...
})

```

### Use component
Expand Down
12 changes: 6 additions & 6 deletions packages/components/src/components/brand/docs/Angular.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@ For general installation and configuration take a look at the [ngx-components](h

### Load component

```ts app.module.ts
//app.module.ts
```ts app.component.ts
// app.component.ts
import { DBBrandModule } from '@db-ui/ngx-components';

@NgModule({
...
@Component({
// ...
standalone: true,
imports: [..., DBBrandModule],
...
// ...
})

```

### Use component
Expand Down
12 changes: 6 additions & 6 deletions packages/components/src/components/button/docs/Angular.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@ For general installation and configuration take a look at the [ngx-components](h

### Load component

```ts app.module.ts
//app.module.ts
```ts app.component.ts
// app.component.ts
import { DBButtonModule } from '@db-ui/ngx-components';

@NgModule({
...
@Component({
// ...
standalone: true,
imports: [..., DBButtonModule],
...
// ...
})

```

### Use component
Expand Down
12 changes: 6 additions & 6 deletions packages/components/src/components/checkbox/docs/Angular.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@ For general installation and configuration take a look at the [ngx-components](h

### Load component

```ts app.module.ts
//app.module.ts
```ts app.component.ts
// app.component.ts
import { DBCheckboxModule } from '@db-ui/ngx-components';

@NgModule({
...
@Component({
// ...
standalone: true,
imports: [..., DBCheckboxModule],
...
// ...
})

```

### Use component
Expand Down
12 changes: 6 additions & 6 deletions packages/components/src/components/divider/docs/Angular.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@ For general installation and configuration take a look at the [ngx-components](h

### Load component

```ts app.module.ts
//app.module.ts
```ts app.component.ts
// app.component.ts
import { DBDividerModule } from '@db-ui/ngx-components';

@NgModule({
...
@Component({
// ...
standalone: true,
imports: [..., DBDividerModule],
...
// ...
})

```

### Use component
Expand Down
12 changes: 6 additions & 6 deletions packages/components/src/components/drawer/docs/Angular.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@ If you use `width !== full` you are able to overwrite the `max-width` with `--db

### Load component

```ts app.module.ts
//app.module.ts
```ts app.component.ts
// app.component.ts
import { DBDrawerModule } from '@db-ui/ngx-components';

@NgModule({
...
@Component({
// ...
standalone: true,
imports: [..., DBDrawerModule],
...
// ...
})

```

### Use component
Expand Down
12 changes: 6 additions & 6 deletions packages/components/src/components/icon/docs/Angular.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@ For general installation and configuration take a look at the [ngx-components](h

### Load component

```ts app.module.ts
//app.module.ts
```ts app.component.ts
// app.component.ts
import { DBIconModule } from '@db-ui/ngx-components';

@NgModule({
...
@Component({
// ...
standalone: true,
imports: [..., DBIconModule],
...
// ...
})

```

### Use component
Expand Down
12 changes: 6 additions & 6 deletions packages/components/src/components/infotext/docs/Angular.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@ For general installation and configuration take a look at the [ngx-components](h

### Load component

```ts app.module.ts
//app.module.ts
```ts app.component.ts
// app.component.ts
import { DBInfotextModule } from '@db-ui/ngx-components';

@NgModule({
...
@Component({
// ...
standalone: true,
imports: [..., DBInfotextModule],
...
// ...
})

```

### Use component
Expand Down
12 changes: 6 additions & 6 deletions packages/components/src/components/link/docs/Angular.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@ For general installation and configuration take a look at the [ngx-components](h

### Load component

```ts app.module.ts
//app.module.ts
```ts app.component.ts
// app.component.ts
import { DBLinkModule } from '@db-ui/ngx-components';

@NgModule({
...
@Component({
// ...
standalone: true,
imports: [..., DBLinkModule],
...
// ...
})

```

### Use component
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@ For general installation and configuration look at the [ngx-components](https://

### Load component

```ts app.module.ts
//app.module.ts
```ts app.component.ts
// app.component.ts
import { DBMainNavigationModule } from '@db-ui/ngx-components';

@NgModule({
...
@Component({
// ...
standalone: true,
imports: [..., DBMainNavigationModule],
...
// ...
})

```

### Use component
Expand Down
12 changes: 6 additions & 6 deletions packages/components/src/components/popover/docs/Angular.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@ For general installation and configuration take a look at the [ngx-components](h

### Load component

```ts app.module.ts
//app.module.ts
```ts app.component.ts
// app.component.ts
import { DBPopoverModule } from '@db-ui/ngx-components';

@NgModule({
...
@Component({
// ...
standalone: true,
imports: [..., DBPopoverModule],
...
// ...
})

```

### Use component
Expand Down
12 changes: 6 additions & 6 deletions packages/components/src/components/radio/docs/Angular.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@ For general installation and configuration take a look at the [ngx-components](h

### Load component

```ts app.module.ts
//app.module.ts
```ts app.component.ts
// app.component.ts
import { DBRadioModule } from '@db-ui/ngx-components';

@NgModule({
...
@Component({
// ...
standalone: true,
imports: [..., DBRadioModule],
...
// ...
})

```

### Use component
Expand Down
Loading

0 comments on commit 729810a

Please sign in to comment.