Skip to content

Instantly share code, notes, and snippets.

@rexar1988
Last active August 1, 2020 16:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rexar1988/80fc4313c89ab4373b2773311a3d385a to your computer and use it in GitHub Desktop.
Save rexar1988/80fc4313c89ab4373b2773311a3d385a to your computer and use it in GitHub Desktop.
import '...';
@Component({
selector: 'app-ng-template',
templateUrl: './ng-template.component.html',
styleUrls: ['./ng-template.component.scss']
})
export class NgTempalateComponent implements OnInit {
context = {
myFirstName: 'John Doe',
greeting(name) {
alert(`Hello! ${name}`);
}
};
constructor() {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment