Skip to content

Commit

Permalink
feat: better comments and code seperation
Browse files Browse the repository at this point in the history
  • Loading branch information
udayvunnam committed Oct 30, 2019
1 parent 58c4729 commit 6257035
Show file tree
Hide file tree
Showing 5 changed files with 139 additions and 114 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<mat-icon aria-label="light theme" *ngIf="theme === 'dark'">wb_incandescent</mat-icon>
</button>

<a mat-icon-button href="https://twitter.com/codeasync" target="_blank" matTooltip="Twitter">
<a mat-icon-button href="https://twitter.com/udayvunnam_" target="_blank" matTooltip="Twitter">
<span class="mat-button-wrapper">
<img alt="Twitter" class="social-logo" src="../../../assets/img/twitter.svg" />
</span>
Expand Down
2 changes: 1 addition & 1 deletion projects/xng-breadcrumb/src/lib/breadcrumb.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<ol class="breadcrumb">
<ng-container *ngFor="let breadcrumb of breadcrumbs$ | async; last as isLast">
<li class="breadcrumb-item" [ngClass]="{ active: isLast }" [attr.aria-current]="isLast ? 'page' : null" *ngIf="!breadcrumb.skip">
<a *ngIf="!isLast; else lastRoute" [routerLink]="[breadcrumb.route]" routerLinkActive="active">
<a *ngIf="!isLast; else lastRoute" [routerLink]="[breadcrumb.routeLink]" routerLinkActive="active">
{{ breadcrumb.label }}
</a>
<ng-template #lastRoute>
Expand Down
6 changes: 2 additions & 4 deletions projects/xng-breadcrumb/src/lib/breadcrumb.component.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import { OnInit, Component, Input } from '@angular/core';
import { BreadcrumbService } from './breadcrumb.service';
import { Component, Input, OnInit } from '@angular/core';
import { Observable } from 'rxjs';
import { filter } from 'rxjs/operators';
import { Breadcrumb } from './breadcrumb';
import { BreadcrumbService } from './breadcrumb.service';

@Component({
selector: 'xng-breadcrumb',
Expand Down
4 changes: 1 addition & 3 deletions projects/xng-breadcrumb/src/lib/breadcrumb.module.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';
import { RouterModule } from '@angular/router';
import { BreadcrumbComponent } from './breadcrumb.component';
import { ModuleWithProviders } from '@angular/compiler/src/core';
import { BreadcrumbService } from './breadcrumb.service';

@NgModule({
declarations: [BreadcrumbComponent],
Expand Down
Loading

0 comments on commit 6257035

Please sign in to comment.