Skip to content

Commit

Permalink
fix(Docs): all imports now correct
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamincharity committed Oct 1, 2019
1 parent 995f543 commit 4a22bc7
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion terminus-ui/chart/src/chart.component.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
Create a factory function to inject the needed libraries:

```typescript
import { TS_AMCHARTS_TOKEN, TsAmChartsToken } from '@terminus/ui';
import { TS_AMCHARTS_TOKEN, TsAmChartsToken } from '@terminus/ui/chart';
import * as am4core from '@amcharts/amcharts4/core';
import * as am4charts from '@amcharts/amcharts4/charts';
import * as am4maps from '@amcharts/amcharts4/maps';
Expand Down
6 changes: 3 additions & 3 deletions terminus-ui/file-upload/src/file-upload.component.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Collect the selected file via the `selected` event:
```

```typescript
@import { TsSelectedFile } from '@terminus/ui';
@import { TsSelectedFile } from '@terminus/ui/file-upload';

...

Expand Down Expand Up @@ -60,7 +60,7 @@ file.width // number (will be 0 for CSVs)
Accepted file types can be set by the `accept` input:

```typescript
@import { TsFileAcceptedMimeTypes } from '@terminus/ui';
@import { TsFileAcceptedMimeTypes } from '@terminus/ui/file-upload';

...

Expand Down Expand Up @@ -140,7 +140,7 @@ For fixed image dimensions set the min and max to the same number. The component
Example:

```typescript
@import { TsFileImageDimensionConstraints } from '@terminus/ui';
@import { TsFileImageDimensionConstraints } from '@terminus/ui/file-upload';

...

Expand Down
6 changes: 3 additions & 3 deletions terminus-ui/pipes/src/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
Import the `TsPipesModule` module into your app:

```typescript
import { TsPipesModule } from '@terminus/ui';
import { TsPipesModule } from '@terminus/ui/pipes';

@NgModule({
imports: [
Expand All @@ -40,7 +40,7 @@ Then use the pipe in HTML:
Import the pipes module to your app:

```typescript
import { TsPipesModule } from '@terminus/ui';
import { TsPipesModule } from '@terminus/ui/pipes';

@NgModule({
...
Expand All @@ -55,7 +55,7 @@ export class AppModule {}
Then inject the pipe into your class and use:

```typescript
import { TsSentenceCasePipe } from '@terminus/ui';
import { TsSentenceCasePipe } from '@terminus/ui/pipes';

@Component({
...
Expand Down
5 changes: 3 additions & 2 deletions terminus-ui/table/src/table.component.md
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ In your class, get a reference to the `TsSortDirective` using `@ViewChild`:

```typescript
import { AfterViewInit } from '@angular/core';
import { TsSortDirective } from '@terminus/ui';
import { TsSortDirective } from '@terminus/ui/sort';

export class TableComponent implements AfterViewInit {
// Get a reference to the TsSortDirective instance
Expand Down Expand Up @@ -333,12 +333,13 @@ import { map } from 'rxjs/operators/map';
import { switchMap } from 'rxjs/operators/switchMap';
import { catchError } from 'rxjs/operators/catchError';

import { TsSortDirective } from '@terminus/ui/sort';
import {
TsTableDataSource,
TsSortDirective,
TsPaginatorComponent,
TsPaginatorMenuItem,
} from '@terminus/ui';
} from '@terminus/ui/table';


@Component({
Expand Down
2 changes: 1 addition & 1 deletion terminus-ui/validators/src/validators.service.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import {
FormBuilder,
FormGroup,
} from '@angular/forms';
import { TsValidatorsService } from '@terminus/ui';
import { TsValidatorsService } from '@terminus/ui/validators';


@Component({
Expand Down

0 comments on commit 4a22bc7

Please sign in to comment.