File tree Expand file tree Collapse file tree 5 files changed +38
-1
lines changed
projects/elements-demo/src Expand file tree Collapse file tree 5 files changed +38
-1
lines changed Original file line number Diff line number Diff line change
1
+ ![ ] ( https://raw.githubusercontent.com/angular-extensions/elements/master/projects/elements-demo/src/assets/logo/github.svg )
2
+
1
3
# Angular Elements - @angular-extensions/elements
2
4
3
5
by [ @tomastrajan ] ( https://twitter.com/tomastrajan )
Original file line number Diff line number Diff line change 9
9
navOpened ? 'close' : 'menu'
10
10
}}</ mat-icon >
11
11
</ button >
12
- < span > @angular-extensions/elements</ span >
12
+
13
+ < a mat-icon-button routerLink ="home ">
14
+ < mat-icon
15
+ inline
16
+ svgIcon ="logo "
17
+ aria-hidden ="false "
18
+ aria-label ="@angular-extensions/elements "
19
+ > </ mat-icon >
20
+ </ a >
21
+ < span class ="project-name "> @angular-extensions/elements</ span >
13
22
14
23
< span class ="spacer "> </ span >
15
24
< ng-container *ngIf ="(isSmallScreen | async) === false ">
Original file line number Diff line number Diff line change
1
+ .project-name {
2
+ padding : 0 0 0 10px ;
3
+ }
4
+
1
5
.spacer {
2
6
flex : 1 0 auto ;
3
7
}
Original file line number Diff line number Diff line change @@ -40,5 +40,9 @@ export class SharedModule {
40
40
'assets/logo/twitter.svg'
41
41
)
42
42
) ;
43
+ this . matIconRegistry . addSvgIcon (
44
+ 'logo' ,
45
+ this . domSanitizer . bypassSecurityTrustResourceUrl ( 'assets/logo/logo.svg' )
46
+ ) ;
43
47
}
44
48
}
You can’t perform that action at this time.
0 commit comments