Can't get the input value that was sent to my component

Hi guys,
I’m probably missing something trivial but i can’t sent an input to my component.

Here’s the component code:

import {Component, Input, Output, EventEmitter} from '@angular/core';
import {DAOLocation} from '../../dao/dao-location';

  selector: 'location-select',
  templateUrl: 'build/components/location-select/location-select.html',
  inputs: ['unit_id', 'location_id'],
  outputs: ['changeLocation']
export class LocationSelect {
  constructor() {
    this.locations = [];
    this.changeLocation = new EventEmitter();


And here’s the way I am passing the values:

<location-select [unit_id]=""

The following line returns undefined and the has the value of 10.


Am I missing something?

Any help will be appreciated.

in constructor all inputs are undefined yet. You could get it in ngOnInit method


Thank you very much!