title: Angular 2 can't change input value at ngOnInit()
body: <p>I need to change the value of an input when the page loads.  However, I am not being able to. This is how I created the input on a separate html file.</p>
  
  <pre><code>&lt;form (submit)="some_function()"&gt;
  &lt;input (keypress)="some_function()" name="test" id="test-input" [(ngModel)]="test" [placeholder]="'NEED TO CHANGE INPUT TEXT' | translate"/&gt;
  &lt;button type="submit"&gt;Submit &lt;/button&gt;
  </code></pre>
  
  <p></p>
  
  <p>Then in a ts file I have something like this:</p>
  
  <pre><code>ngOnInit() {
  
      var element = document.getElementById("test-input");
      // If I console.log(element) I actually get it.
  
      element.textContent = "INPUT TEXT CHANGED??";
      // If I console.log(element.textContent) I get the input with changed text... but I can't see it otherwise
  
  }
  </code></pre>
  
  <p>What am I doing wrong here? Any help?</p>