angularjs - dynamically name an angular controller -
i trying name angular controller dynamically, so:
app.controller(dynamic_name_constructed_here, ...);
right now, when run program, error:
error: [ng:areq] argument dynamic_name_constructed_here not function, got undefined
is constructing name way constructing allowed? if not, explanation why doesn't work awesome! if so, how can eliminate error?
thanks in advance!
Comments
Post a Comment