This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { Map } = require('immutable'); | |
const map1 = Map({ a: 1, b: 2, c: 3 }); | |
const map2 = map1.set('b', 50); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Component({ | |
selector: 'app-navigation', | |
templateUrl: './app-navigation.component.html', | |
styleUrls: ['./app-navigation.component.scss'] | |
}) | |
export class AppNavigationComponent implements OnInit, OnDestroy { | |
ngOnInit() { | |
} | |
ngOnDestroy() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export class MovieDetailComponent implements OnInit { | |
@Input() public movieId: string; | |
@Input() public movieName: string; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Component({ | |
selector: 'app-date-time', | |
templateUrl: './date-time.component.html', | |
styleUrls: ['./date-time.component.scss'] | |
}) | |
export class DateTimeComponent { } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Pipe({ | |
name: 'duration', | |
pure: true | |
}) | |
export class DurationPipe implements PipeTransform { | |
transform(value: any): any { | |
const { min, sec } = parseDuration(value); | |
return `${min}m${padTime(sec)}s`; | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Component({ | |
selector: 'app-dashboard', | |
templateUrl: './dashboard.component.html', | |
styleUrls: ['./dashboard.component.scss'], | |
changeDetection: ChangeDetectionStrategy.OnPush | |
}) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- app | |
-- core | |
-- features | |
-- shared | |
-- styles | |
-- assets |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: Pod | |
metadata: | |
creationTimestamp: null | |
labels: | |
run: MyPod | |
name: MyPod | |
namespace: fire | |
spec: | |
containers: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
data: | |
database_host: 192.168.16.1 | |
kind: ConfigMap | |
metadata: | |
creationTimestamp: null | |
name: MyConfigMap | |
namespace: fire |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Program | |
{ | |
public static void Main(string[] args) | |
{ | |
CreateHostBuilder(args).Build().Run(); | |
} | |
public static IHostBuilder CreateHostBuilder(string[] args) => | |
Host.CreateDefaultBuilder(args).ConfigureWebHostDefaults(webBuilder => | |
{ |