(elementOrAmpDoc, id)
| 201 | * @template T |
| 202 | */ |
| 203 | export function getServiceForDoc(elementOrAmpDoc, id) { |
| 204 | const ampdoc = getAmpdoc(elementOrAmpDoc); |
| 205 | const holder = getAmpdocServiceHolder(ampdoc); |
| 206 | return getServiceInternal(holder, id); |
| 207 | } |
| 208 | |
| 209 | /** |
| 210 | * Returns a service for the given id and ampdoc (a per-ampdoc singleton). |
no test coverage detected