Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import { Component, Input, OnInit } from '@angular/core';
- @Component({
- selector: 'app-example',
- templateUrl: './app-example.component.html',
- styleUrls: ['./app-example.component.css']
- })
- export class ExampleComponent implements OnInit {
- @Input() local_variable: any;
- constructor() { }
- ngOnInit() {
- if (local_variable) {
- console.log(local_variable);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement