Files
codeql/javascript/ql/test/library-tests/frameworks/AngularJS/controllers/Controller.ql
2018-08-02 17:53:23 +01:00

6 lines
239 B
Plaintext

import javascript
from AngularJS::Controller c, DOM::ElementDefinition elem, string name
where c.boundTo(elem) and
if not c.boundToAs(elem, _) then name = "-" else c.boundToAs(elem, name)
select c, elem, c.getFactoryFunction(), name