Skip to content
This repository was archived by the owner on Jun 8, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions en/components/navdrawer.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ import { IgxIconComponent } from 'igniteui-angular/icon';
<div class="content-wrap">
<igx-nav-drawer [isOpen]="true">
<ng-template igxDrawer>
<nav>
<span igxDrawerItem [isHeader]="true">Components</span>
<span
*ngFor="let item of navItems"
Expand All @@ -82,7 +81,6 @@ import { IgxIconComponent } from 'igniteui-angular/icon';
<igx-icon fontSet="material">{{ item.name }}</igx-icon>
<span>{{ item.text }}</span>
</span>
</nav>
</ng-template>
</igx-nav-drawer>
<main>
Expand Down Expand Up @@ -126,13 +124,11 @@ The [`igxRipple`](ripple.md) directive completes the look and feel:
<div class="content-wrap">
<igx-nav-drawer id="navigation" #drawer [isOpen]="true">
<ng-template igxDrawer>
<nav>
<span igxDrawerItem [isHeader]="true">Components</span>
<span *ngFor="let item of navItems" igxDrawerItem [active]="item.text === selected" igxRipple (click)="navigate(item)">
<igx-icon fontSet="material">{{ item.name }}</igx-icon>
<span>{{ item.text }}</span>
</span>
</nav>
</ng-template>
</igx-nav-drawer>
<main>
Expand Down
8 changes: 1 addition & 7 deletions jp/components/navdrawer.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ import { IgxIconComponent } from 'igniteui-angular/icon';
<div class="content-wrap">
<igx-nav-drawer [isOpen]="true">
<ng-template igxDrawer>
<nav>
<span igxDrawerItem [isHeader]="true">Components</span>
<span
*ngFor="let item of navItems"
Expand All @@ -83,7 +82,6 @@ import { IgxIconComponent } from 'igniteui-angular/icon';
<igx-icon fontSet="material">{{ item.name }}</igx-icon>
<span>{{ item.text }}</span>
</span>
</nav>
</ng-template>
</igx-nav-drawer>
<main>
Expand Down Expand Up @@ -127,13 +125,11 @@ Drawer のコンテンツを `igxDrawer` ディレクティブでデコレート
<div class="content-wrap">
<igx-nav-drawer id="navigation" #drawer [isOpen]="true">
<ng-template igxDrawer>
<nav>
<span igxDrawerItem [isHeader]="true">Components</span>
<span *ngFor="let item of navItems" igxDrawerItem [active]="item.text === selected" igxRipple (click)="navigate(item)">
<igx-icon fontSet="material">{{ item.name }}</igx-icon>
<span>{{ item.text }}</span>
</span>
</nav>
</ng-template>
</igx-nav-drawer>
<main>
Expand Down Expand Up @@ -349,7 +345,6 @@ export class AppComponent {

<!-- ... -->
<ng-template igxDrawer>
<nav>
<span igxDrawerItem [isHeader]="true">Components</span>

<span
Expand All @@ -362,7 +357,6 @@ export class AppComponent {
[active]="rla.isActive">
{{item.name}}
</span>
</nav>
</ng-template>
<!-- ... -->
```
Expand Down Expand Up @@ -508,4 +502,4 @@ $custom-theme: navdrawer-theme(
## API とスタイル リファレンス

- [IgxNavigationDrawerComponent API]({environment:angularApiUrl}/classes/igxnavigationdrawercomponent.html)
- [IgxNavigationDrawerComponent スタイル]({environment:sassApiUrl}/themes#function-navdrawer-theme)
- [IgxNavigationDrawerComponent スタイル]({environment:sassApiUrl}/themes#function-navdrawer-theme)
26 changes: 10 additions & 16 deletions kr/components/navdrawer.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,13 @@ While any content can be provided in the template, the [`igxDrawerItem`]({enviro
<div class="content-wrap">
<igx-nav-drawer id="navigation" #drawer [isOpen]="true">
<ng-template igxDrawer>
<nav>
<span igxDrawerItem [isHeader]="true"> Email Account </span>
<span igxDrawerItem igxRipple> Inbox </span>
<span igxDrawerItem igxRipple [active]="true"> Drafts </span>
<span igxDrawerItem igxRipple> Sent </span>
<span igxDrawerItem [isHeader]="true"> Folders </span>
<span igxDrawerItem igxRipple> Deleted </span>
<span igxDrawerItem igxRipple> Archive </span>
</nav>
</ng-template>
</igx-nav-drawer>
<main>
Expand Down Expand Up @@ -237,27 +235,23 @@ One way to tie in the active state is to directly use the [`routerLinkActive`](h
```html
<!-- ... -->
<ng-template igxDrawer>
<nav>
<span *ngFor="let item of componentLinks" routerLink="{{item.link}}"
igxDrawerItem igxRipple
routerLinkActive="igx-nav-drawer__item--active" >
{{item.name}}
</span>
</nav>
<span *ngFor="let item of componentLinks" routerLink="{{item.link}}"
igxDrawerItem igxRipple
routerLinkActive="igx-nav-drawer__item--active" >
{{item.name}}
</span>
Comment on lines +238 to +242

Copilot AI Apr 1, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In Angular templates, prefer property binding for routerLink instead of string interpolation in an attribute. Using [routerLink]="item.link" (or an array form) avoids unnecessary string interpolation and keeps the directive input typed as intended.

Copilot uses AI. Check for mistakes.
</ng-template>
<!-- ... -->
```
This approach, of course, does not affect the actual directive active state and could be affected by styling changes. An alternative would be the more advanced use of `routerLinkActive` where it's assigned to a template variable and the `isActive` can be used for binding:
```html
<!-- ... -->
<ng-template igxDrawer>
<nav>
<span *ngFor="let item of componentLinks" routerLink="{{item.link}}"
routerLinkActive #rla="routerLinkActive"
igxDrawerItem igxRipple [active]="rla.isActive">
{{item.name}}
</span>
</nav>
<span *ngFor="let item of componentLinks" routerLink="{{item.link}}"
routerLinkActive #rla="routerLinkActive"
igxDrawerItem igxRipple [active]="rla.isActive">
{{item.name}}
</span>
Comment on lines +250 to +254

Copilot AI Apr 1, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above: use property binding for routerLink (e.g., [routerLink]="item.link") rather than routerLink="{{item.link}}" to keep the RouterLink input typed and avoid interpolation in attribute values.

Copilot uses AI. Check for mistakes.
</ng-template>
<!-- ... -->
```
Expand Down
Loading