title: Parameter in to Animation Angular2
body: <p>I'm trying to make a simple animation like the simple jQuery below</p>
  
  <pre><code>animate({'left' : left_indent})
  </code></pre>
  
  <p>I'm using the Angular2 Animations but the problem is how do I pass the left_indent parameter outside my Component Class in to the animation trigger? </p>
  
  <pre><code>animations: [
      trigger('flyInOut', [
  
          state('for', style({
              left: this.left_indent,
          })),
  
          transition('* =&gt; for', [
              animate(2000, keyframes([
                  style({ opacity: 1, transform: 'translateX(0)', offset: 0 }),
                  style({ opacity: 1, transform: 'translateX(-300px)', offset: 0.5 }),
              ]))
          ]),
      ])
  ]
  </code></pre>