code: function initMirror() {
              var mirrorStyle = mirrorInitStyle;
  
              mirrored = ta;
              // copy the essential styles from the textarea to the mirror
              taStyle = getComputedStyle(ta);
              angular.forEach(copyStyle, function(val) {
                mirrorStyle += val + ':' + taStyle.getPropertyValue(val) + ';';
              });
              mirror.setAttribute('style', mirrorStyle);
            }
docs: /*
  methods