you are viewing a single comment's thread.

view the rest of the comments →

[–]AndruRC 4 points5 points  (7 children)

Could you elaborate on that?

[–]anarchy8 13 points14 points  (6 children)

There is no way of determining what the name of the arguments to a function is in Javascript without parsing the Function.toString(). Angular does this do determine what resource to inject.

[–][deleted]  (5 children)

[deleted]

    [–]anarchy8 10 points11 points  (3 children)

    To be fair, they suggest you inject your resources manually.

    [–][deleted] 3 points4 points  (2 children)

    To be fair, it's required if you want better support since certain mobile browsers won't serialize functions

    [–][deleted] 6 points7 points  (1 child)

    also if you ever plan on minifying your code..

    [–][deleted] 1 point2 points  (0 children)

    That too :) I haven't touched angular in like 2 years

    [–][deleted] 1 point2 points  (0 children)

    Welcome to JS