title: Recompile angularJS component?
body: <p>I want to recompile / compile the template of my component. I am loading an external module with $onInit, and things just show up when I navigate somewhere else in the page and then back again to the page that loads the module.</p>
  
  <p>I thought that I maybe could compile the template. Do you know a way how I could do that?</p>
  
  <hr>
  
  <p>Edit:</p>
  
  <p>If I use compile in my code, nothing happens</p>
  
  <pre><code>controller: {
  $onInit(){
  this.$ocLazyLoad.load('some.module.js');
   }
  },
  
  template:
  '&lt;p&gt;Sample text here&lt;/p&gt;',
  
  compile: function (tElement, tAttrs) {
      return function(scope) {
          scope.widgetCenter = tAttrs.widgetCenter;
      };
  
  }
  </code></pre>