• Robert Knight's avatar
    Require templates with require() in components · 25d03849
    Robert Knight authored
    Include Angular component templates as strings in the app bundle using
    the stringify Browserify transform and use them from directives using
    'template' instead of 'templateUrl'.
    
    This is faster, because it avoids going through the async $http
    machinery to load templates, but it is also synchronous, which generally
    means fewer surprises due to async template loading and specifically in
    the context of the <excerpt> directive will be useful as it will make it
    possible for the <excerpt> directive to measure the height of its
    content in the link function, because all components inside the
    exercept's content will have been fully resolved at that point.
    25d03849
signin-control.js 822 Bytes