title: Angular 7, Enum and Input property binding
body: <p>The issue is when binding an enum with a view template using <code>@Input</code>, the enum is being resolved to <code>undefined</code>.
  The component:</p>
  
  <pre><code>enum FormAction {
    Insert,
    Update
  }    
  @Component({
    selector: 'app-member-editor',
  })
  export class MemberEditorComponent implements OnInit {
    modes = FormAction;
  
    @Input('mode') mode: FormAction;
  
    ngOnInit() {
      console.log(this.mode);
    }
  }
  </code></pre>
  
  <p>The view template:</p>
  
  <pre><code>&lt;app-member-editor [mode]="modes.Insert"&gt;&lt;/app-member-editor&gt;
  </code></pre>
  
  <p>The console:</p>
  
  <pre><code>Cannot read property 'Insert' of undefined
  </code></pre>