Skip to content

Instantly share code, notes, and snippets.

@koningskristof
Created August 8, 2019 14:45
Show Gist options
  • Save koningskristof/7992c2ac365cbf5c77bde52b4d2dabeb to your computer and use it in GitHub Desktop.
Save koningskristof/7992c2ac365cbf5c77bde52b4d2dabeb to your computer and use it in GitHub Desktop.
futureProofComponent
export class SomeComponent implements IComponentOptions {
bindings: any;
templateUrl: any = require('./some-component.html');
require: any;
controller: any = SomeComponentController;
}
export class SomeComponentController {
public static $inject: Array<string> = [
'someService',
'someOtherService'
];
constructor(private someService,
private someOtherService) {
}
public $onInit(): void {
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment