title: When the DOM of element exists after ng-if become true?
body: <p>I'm very new to angularjs.</p>
  
  <p>I'm using ng-if to hide/show the portion of html code</p>
  
  <pre><code>&lt;div ng-if="editing"&gt;
      &lt;textarea id="editor" ng-model="longtext"&gt;&lt;/textarea&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>and I'm trying to access to DOM of textarea to modify it(using CKeditor).</p>
  
  <pre><code>$scope.edit=function(){
      $scope.editing = true
      $("#editor").ckEditor({})
  }
  </code></pre>
  
  <p>The problem is the textarea is not exists at this point. 
  I can use <code>setTimeout</code> and it's works but I don't think it's a clean way to do.
  How do do this in a cleaner way?</p>
  
  <p>I made fiddle here <a href="http://jsfiddle.net/wxB36/2/" rel="nofollow">http://jsfiddle.net/wxB36/2/</a> (I use addClass instead of ckEditor).</p>