flatten ng-src ng-href