Skip to content

Commit

Permalink
docs: adjust tutorials angular app no routing (#249)
Browse files Browse the repository at this point in the history
  • Loading branch information
boeckMt authored Nov 15, 2024
1 parent 9765003 commit 65cc1a0
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions TUTORIALS.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ npm install -g @angular/cli@<version>

- Then run:
```
ng new project-tutorial-map --style=scss --standalone=true
ng new project-tutorial-map --style=scss --standalone=true --routing=false
```
- We do not need angular routing, so decline the prompt with `N`

Expand All @@ -35,12 +35,14 @@ npm install @cds/core@<version> @clr/angular@<version> @clr/ui@<version>
- Add the Clarity module and others to app.config.ts:
```
import { ApplicationConfig, importProvidersFrom } from '@angular/core';
...
import { ClarityModule } from '@clr/angular';
import { provideAnimations } from '@angular/platform-browser/animations';
import { BrowserModule } from '@angular/platform-browser';
export const appConfig: ApplicationConfig = {
providers: [
...
importProvidersFrom(BrowserModule, ClarityModule),
provideAnimations()
]
Expand Down Expand Up @@ -118,6 +120,8 @@ import { OsmTileLayer, EocLitemap, BlueMarbleTile, EocLiteoverlayTile } from '@d
...
@Component({
...
providers: [LayersService, MapStateService, MapOlService],
standalone: true,
imports: [
Expand All @@ -126,7 +130,8 @@ imports: [
LayerControlComponent,
BaseLayerControlComponent
]
...
})
...
controls!: IMapControls;
Expand Down

0 comments on commit 65cc1a0

Please sign in to comment.