File tree Expand file tree Collapse file tree 4 files changed +14
-30
lines changed
apps/fretonator-web/src/app/common/fretonator Expand file tree Collapse file tree 4 files changed +14
-30
lines changed Original file line number Diff line number Diff line change 1
- import { Component , Input , OnInit } from '@angular/core' ;
1
+ import { Component , Input } from '@angular/core' ;
2
2
import { ChordMap } from '../../../util/types' ;
3
3
4
4
@Component ( {
5
5
selector : 'app-chord-map' ,
6
6
templateUrl : './chord-map.component.html' ,
7
7
styleUrls : [ './chord-map.component.scss' ]
8
8
} )
9
- export class ChordMapComponent implements OnInit {
9
+ export class ChordMapComponent {
10
10
@Input ( ) chordMap : ChordMap ;
11
-
12
- constructor ( ) { }
13
-
14
- ngOnInit ( ) : void {
15
- }
16
-
17
11
}
Original file line number Diff line number Diff line change 1
- import { Component , Input , OnInit } from '@angular/core' ;
1
+ import { Component , Input } from '@angular/core' ;
2
2
3
3
@Component ( {
4
4
selector : 'app-interval-map' ,
5
5
templateUrl : './interval-map.component.html' ,
6
6
styleUrls : [ './interval-map.component.scss' ]
7
7
} )
8
- export class IntervalMapComponent implements OnInit {
8
+ export class IntervalMapComponent {
9
9
@Input ( ) intervalMap : [ ] ;
10
- constructor ( ) { }
11
-
12
- ngOnInit ( ) : void {
13
- }
14
-
15
10
}
Original file line number Diff line number Diff line change @@ -14,8 +14,8 @@ <h4 class="scaleMap__title">Degrees</h4>
14
14
aria-controls ="scaleMapInfo "
15
15
role ="switch "
16
16
type ="button "
17
- [attr.aria-checked] ="showscaleMapInfo "
18
- (click) ="togglescaleMapInfo () "> {{scaleDegreesToggleText}}
17
+ [attr.aria-checked] ="showScaleMapInfo "
18
+ (click) ="toggleScaleMapInfo () "> {{scaleDegreesToggleText}}
19
19
</ button >
20
20
</ div >
21
21
@@ -34,14 +34,14 @@ <h5 class="scaleDisplay__note">
34
34
35
35
< div class ="scaleMapInfo "
36
36
id ="scaleMapInfo "
37
- *ngIf ="showscaleMapInfo ">
37
+ *ngIf ="showScaleMapInfo ">
38
38
< h2 class ="scaleMapInfo__title "> About Scale Degrees
39
39
< button class ="scaleMapInfo__close "
40
40
aria-label ="Scale Degrees Info Toggle "
41
41
aria-controls ="scaleMapInfo "
42
42
role ="switch "
43
43
type ="button "
44
- (click) ="togglescaleMapInfo () ">
44
+ (click) ="toggleScaleMapInfo () ">
45
45
< svg xmlns ="http://www.w3.org/2000/svg " viewBox ="0 0 14 14 ">
46
46
< path fill ="#474350 " fill-rule ="evenodd "
47
47
d ="M14 1.41L12.59 0 7 5.59 1.41 0 0 1.41 5.59 7 0 12.59 1.41 14 7 8.41 12.59 14 14 12.59 8.41 7z "> </ path >
Original file line number Diff line number Diff line change 1
- import { Component , Input , OnInit } from '@angular/core' ;
1
+ import { Component , Input } from '@angular/core' ;
2
2
import { Mode , Scale } from '../../../util/types' ;
3
3
4
4
enum ScaleDegreesToggleText {
@@ -11,20 +11,15 @@ enum ScaleDegreesToggleText {
11
11
templateUrl : './scale-map.component.html' ,
12
12
styleUrls : [ './scale-map.component.scss' ]
13
13
} )
14
- export class ScaleMapComponent implements OnInit {
14
+ export class ScaleMapComponent {
15
15
@Input ( ) mode : Mode ;
16
16
@Input ( ) scale : Scale ;
17
17
18
- showscaleMapInfo = false ;
18
+ showScaleMapInfo = false ;
19
19
scaleDegreesToggleText = ScaleDegreesToggleText . hidden ;
20
20
21
- constructor ( ) { }
22
-
23
- ngOnInit ( ) : void {
24
- }
25
-
26
- togglescaleMapInfo ( ) {
27
- this . showscaleMapInfo = ! this . showscaleMapInfo ;
28
- this . scaleDegreesToggleText = this . showscaleMapInfo ? ScaleDegreesToggleText . visible : ScaleDegreesToggleText . hidden ;
21
+ toggleScaleMapInfo ( ) {
22
+ this . showScaleMapInfo = ! this . showScaleMapInfo ;
23
+ this . scaleDegreesToggleText = this . showScaleMapInfo ? ScaleDegreesToggleText . visible : ScaleDegreesToggleText . hidden ;
29
24
}
30
25
}
You can’t perform that action at this time.
0 commit comments