• Robert Knight's avatar
    Simplify <excerpt> link function · 5f80a473
    Robert Knight authored
    Wrapping the init logic in `scope.$evalAsync()` used to be
    necessary so that any code touching the '.excerpt' element
    ran after that element had been transcluded into the DOM.
    
    However, this is no longer necessary since all the init logic
    now runs inside a `scope.$watch()` callback, which is invoked
    after `ngIf` has inserted the '.excerpt' element into the DOM.
    5f80a473
excerpt.js 3.56 KB