(el: HTMLElement, prop: string)
| 2 | import { parsePath } from './path'; |
| 3 | |
| 4 | const readProp = (el: HTMLElement, prop: string): string | null | undefined => { |
| 5 | if (prop in el) { |
| 6 | return (el as any)[prop]; |
| 7 | } |
| 8 | if (el.hasAttribute(prop)) { |
| 9 | return el.getAttribute(prop); |
| 10 | } |
| 11 | return null; |
| 12 | }; |
| 13 | |
| 14 | /** |
| 15 | * Extracts the redirects (that is <ion-route-redirect> elements inside the root). |
no outgoing calls
no test coverage detected