Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
MurhafSousli committed Jul 15, 2023
1 parent 853e8a7 commit 04a0ed0
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<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>
<p>See <a mat-button class="inline-button" style="padding: 0 0.5em" color="accent" routerLink="/gallery">Gallery
Example</a> and <a mat-button class="inline-button" style="padding: 0 0.5em" color="accent"
routerLink="/advanced">Advanced Example</a>
routerLink="/custom-templates">Custom Templates Example</a>
</p>

<p></p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ <h3>Example</h3>
<p>Beside these options, you can also use CSS to change gallery's style.</p>

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

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div class="page-title">
<h1>Advanced Example</h1>
<h1>Custom Templates Example</h1>
</div>
<div class="page-content">
<section>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@ import { NoteComponent } from '../../shared/note/note.component';
host: {
'class': 'page'
},
selector: 'advanced-example',
templateUrl: './advanced-example.component.html',
styleUrls: ['./advanced-example.component.scss'],
selector: 'templates-example',
templateUrl: './templates-example.component.html',
styleUrls: ['./templates-example.component.scss'],
animations: [slideInAnimation],
standalone: true,
imports: [CommonModule, SectionTitleComponent, GalleryModule, HlCodeComponent, FooterComponent, FontAwesomeModule, MatButtonModule, NoteComponent]
})
export class AdvancedExampleComponent implements OnInit {
export class TemplatesExampleComponent implements OnInit {

readonly arr = data;
readonly code = code;
Expand All @@ -62,7 +62,7 @@ export class AdvancedExampleComponent implements OnInit {
}

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

this.arr.map((item: GalleryItemData) => {
Expand Down Expand Up @@ -175,12 +175,12 @@ import { CommonModule } from '@angular/common';
import { GalleryModule, Gallery, GalleryRef } from 'ng-gallery';
@Component({
selector: 'advanced-example',
templateUrl: './advanced-example.html',
selector: 'example-component',
templateUrl: './example-templates.html',
standalone: true,
imports: [CommonModule, GalleryModule]
})
export class AdvancedExampleComponent implements OnInit {
export class ExampleComponent implements OnInit {
galleryId = 'mixedExample';
Expand Down
4 changes: 2 additions & 2 deletions projects/ng-gallery-demo/src/app/routing.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ const appRoutes: Routes = [
loadComponent: () => import('./pages/gallerize-example/gallerize-example.component').then(m => m.GallerizeExampleComponent)
},
{
path: 'advanced',
loadComponent: () => import('./pages/advanced-example/advanced-example.component').then(m => m.AdvancedExampleComponent)
path: 'custom-templates',
loadComponent: () => import('./pages/templates-example/templates-example.component').then(m => m.TemplatesExampleComponent)
},
{
path: 'lab',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<a mat-button routerLink="gallery" routerLinkActive="active">Gallery</a>
<a mat-button routerLink="lightbox" routerLinkActive="active">Lightbox</a>
<a mat-button routerLink="gallerize" routerLinkActive="active">Gallerize</a>
<a mat-button routerLink="advanced" routerLinkActive="active">Advanced</a>
<a mat-button routerLink="custom-templates" routerLinkActive="active">Custom Templates</a>
<a mat-button routerLink="lab" routerLinkActive="active">Lab</a>
<a mat-button href="https://github.com/MurhafSousli/ng-gallery">
<fa-icon [icon]="['fab', 'github']" size="lg"></fa-icon>
Expand Down

0 comments on commit 04a0ed0

Please sign in to comment.