Skip to content

Instantly share code, notes, and snippets.

spring:
application:
name: myawesomeapp
jackson:
serialization.write_dates_as_timestamps: false
cache:
type: none
h2:
console:
enabled: false
@bndF1
bndF1 / file-from-project-custom-content.html
Last active August 31, 2019 15:52
Angular content projection example. This is the component where we're going to project the content (service-bar-status.component.ts). We also can define dumb components to allow the content to be projectected.
<service-bar-status [service]="service" [routes]="{returnBackURL: returnBackURL, cancelRouteURL: cancelRoute}">
<cancel-label>
<!-- Will be projecten at <ng-content select="cancel-label"></ng-content> -->
<span jhiTranslate="services.cancel"></span>
</cancel-label>
<service-cancelled-label>
<span class="mt-2 text-uppercase" jhiTranslate="services.serviceCanceled"></span>
</service-cancelled-label>
<return-label>
<span jhiTranslate="service.return"></span>
@bndF1
bndF1 / angular-cli-cheats.md
Last active September 1, 2019 08:56
Angular custom cheat sheet. Create angular component inside specific folder

Angular cheat sheet

  1. Create angular component inside specific folder: ng g component features/shared/skeleton
@bndF1
bndF1 / destruct-objects.ts
Last active September 6, 2019 11:24
Example of Destructuring and object
routes: MyBeatifulInterface;
private destructExtrangeObject() {
let returnBackURL: string;
if (this.someValue) {
returnBackURL = 'some-url' + this.someValue
} else if (!this.someValue && !this.anotherValue) {
returnBackURL = '/another-url';
} else if (this.anotherValue) {
returnBackURL = '/different/url' + this.anotherValue;