(name: string, value: any)
| 18 | * @param value The value to export. |
| 19 | */ |
| 20 | export function exportNgVar(name: string, value: any): void { |
| 21 | if (typeof COMPILED === 'undefined' || !COMPILED) { |
| 22 | // Note: we can't export `ng` when using closure enhanced optimization as: |
| 23 | // - closure declares globals itself for minified names, which sometimes clobber our `ng` global |
| 24 | // - we can't declare a closure extern as the namespace `ng` is already used within Google |
| 25 | // for typings for angularJS (via `goog.provide('ng....')`). |
| 26 | const ng = (global['ng'] = (global['ng'] as {[key: string]: any} | undefined) || {}); |
| 27 | ng[name] = value; |
| 28 | } |
| 29 | } |
no outgoing calls
no test coverage detected
searching dependent graphs…