Skip to content

Commit 04a0ed0

Browse files
committed
Update docs
1 parent 853e8a7 commit 04a0ed0

File tree

8 files changed

+14
-14
lines changed

8 files changed

+14
-14
lines changed

projects/ng-gallery-demo/src/app/pages/documentation/doc-core/doc-core.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<p>Since the standalone components has been the new standard in Angular >= 15, you can import <code class="hljs">GalleryModule</code> in your component imports.</p>
1515
<p>See <a mat-button class="inline-button" style="padding: 0 0.5em" color="accent" routerLink="/gallery">Gallery
1616
Example</a> and <a mat-button class="inline-button" style="padding: 0 0.5em" color="accent"
17-
routerLink="/advanced">Advanced Example</a>
17+
routerLink="/custom-templates">Custom Templates Example</a>
1818
</p>
1919

2020
<p></p>

projects/ng-gallery-demo/src/app/pages/gallery-example/gallery-example.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ <h3>Example</h3>
8383
<p>Beside these options, you can also use CSS to change gallery's style.</p>
8484

8585
<p>For more advanced usage, check the
86-
<a mat-button class="inline-button" style="padding: 0 0.5em" color="accent" routerLink="/advanced">Advanced
86+
<a mat-button class="inline-button" style="padding: 0 0.5em" color="accent" routerLink="/custom-templates">Custom Templates
8787
Example</a>
8888
</p>
8989

projects/ng-gallery-demo/src/app/pages/advanced-example/advanced-example.component.html renamed to projects/ng-gallery-demo/src/app/pages/templates-example/templates-example.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<div class="page-title">
2-
<h1>Advanced Example</h1>
2+
<h1>Custom Templates Example</h1>
33
</div>
44
<div class="page-content">
55
<section>

projects/ng-gallery-demo/src/app/pages/advanced-example/advanced-example.component.ts renamed to projects/ng-gallery-demo/src/app/pages/templates-example/templates-example.component.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,14 @@ import { NoteComponent } from '../../shared/note/note.component';
2929
host: {
3030
'class': 'page'
3131
},
32-
selector: 'advanced-example',
33-
templateUrl: './advanced-example.component.html',
34-
styleUrls: ['./advanced-example.component.scss'],
32+
selector: 'templates-example',
33+
templateUrl: './templates-example.component.html',
34+
styleUrls: ['./templates-example.component.scss'],
3535
animations: [slideInAnimation],
3636
standalone: true,
3737
imports: [CommonModule, SectionTitleComponent, GalleryModule, HlCodeComponent, FooterComponent, FontAwesomeModule, MatButtonModule, NoteComponent]
3838
})
39-
export class AdvancedExampleComponent implements OnInit {
39+
export class TemplatesExampleComponent implements OnInit {
4040

4141
readonly arr = data;
4242
readonly code = code;
@@ -62,7 +62,7 @@ export class AdvancedExampleComponent implements OnInit {
6262
}
6363

6464
ngOnInit() {
65-
this._title.setTitle('Advanced | ng-gallery');
65+
this._title.setTitle('Custom Templates | ng-gallery');
6666
const galleryRef = this._gallery.ref('mixed');
6767

6868
this.arr.map((item: GalleryItemData) => {
@@ -175,12 +175,12 @@ import { CommonModule } from '@angular/common';
175175
import { GalleryModule, Gallery, GalleryRef } from 'ng-gallery';
176176
177177
@Component({
178-
selector: 'advanced-example',
179-
templateUrl: './advanced-example.html',
178+
selector: 'example-component',
179+
templateUrl: './example-templates.html',
180180
standalone: true,
181181
imports: [CommonModule, GalleryModule]
182182
})
183-
export class AdvancedExampleComponent implements OnInit {
183+
export class ExampleComponent implements OnInit {
184184
185185
galleryId = 'mixedExample';
186186

projects/ng-gallery-demo/src/app/routing.module.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ const appRoutes: Routes = [
2424
loadComponent: () => import('./pages/gallerize-example/gallerize-example.component').then(m => m.GallerizeExampleComponent)
2525
},
2626
{
27-
path: 'advanced',
28-
loadComponent: () => import('./pages/advanced-example/advanced-example.component').then(m => m.AdvancedExampleComponent)
27+
path: 'custom-templates',
28+
loadComponent: () => import('./pages/templates-example/templates-example.component').then(m => m.TemplatesExampleComponent)
2929
},
3030
{
3131
path: 'lab',

projects/ng-gallery-demo/src/app/shared/menu/menu.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<a mat-button routerLink="gallery" routerLinkActive="active">Gallery</a>
55
<a mat-button routerLink="lightbox" routerLinkActive="active">Lightbox</a>
66
<a mat-button routerLink="gallerize" routerLinkActive="active">Gallerize</a>
7-
<a mat-button routerLink="advanced" routerLinkActive="active">Advanced</a>
7+
<a mat-button routerLink="custom-templates" routerLinkActive="active">Custom Templates</a>
88
<a mat-button routerLink="lab" routerLinkActive="active">Lab</a>
99
<a mat-button href="https://github.com/MurhafSousli/ng-gallery">
1010
<fa-icon [icon]="['fab', 'github']" size="lg"></fa-icon>

0 commit comments

Comments
 (0)