MCPcopy Index your code
hub / github.com/angular-ui/ui-grid / getNgAttribute

Function getNgAttribute

lib/test/angular/1.6.7/angular.js:1626–1635  ·  view source on GitHub ↗
(element, ngAttr)

Source from the content-addressed store, hash-verified

1624var ngAttrPrefixes = ['ng-', 'data-ng-', 'ng:', 'x-ng-'];
1625
1626function getNgAttribute(element, ngAttr) {
1627 var attr, i, ii = ngAttrPrefixes.length;
1628 for (i = 0; i < ii; ++i) {
1629 attr = ngAttrPrefixes[i] + ngAttr;
1630 if (isString(attr = element.getAttribute(attr))) {
1631 return attr;
1632 }
1633 }
1634 return null;
1635}
1636
1637function allowAutoBootstrap(document) {
1638 var script = document.currentScript;

Callers 1

angularInitFunction · 0.70

Calls 1

isStringFunction · 0.70

Tested by

no test coverage detected