@angular-wave/angular.ts 0.0.40 → 0.0.42

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (79) hide show
  1. package/README.md +28 -0
  2. package/dist/angular-ts.esm.js +2 -2
  3. package/dist/angular-ts.umd.js +2 -2
  4. package/package.json +1 -1
  5. package/src/animations/animate-queue.js +7 -4
  6. package/src/core/compile/compile.js +5 -3
  7. package/src/core/compile/compile.md +2 -5
  8. package/src/core/compile/compile.spec.js +2 -43
  9. package/src/core/exception-handler.js +6 -6
  10. package/src/core/interpolate/interpolate.js +1 -1
  11. package/src/core/location/location.spec.js +0 -4
  12. package/src/core/q/q.js +1 -1
  13. package/src/core/scope/scope.js +1 -1
  14. package/src/core/task-tracker-factory.js +2 -2
  15. package/src/core/timeout/timeout.js +1 -1
  16. package/src/core/url-utils/url-utils.js +0 -2
  17. package/src/directive/bind/bind.js +2 -2
  18. package/src/directive/change/change.js +1 -1
  19. package/src/directive/cloak/cloak.js +1 -1
  20. package/src/directive/events/events.js +1 -1
  21. package/src/directive/form/form.js +2 -2
  22. package/src/directive/include/include.js +5 -7
  23. package/src/directive/init/init.js +1 -1
  24. package/src/directive/list/list.js +1 -1
  25. package/src/directive/model/model.js +1 -1
  26. package/src/directive/model-options/model-options.js +56 -421
  27. package/src/directive/model-options/model-options.md +407 -0
  28. package/src/directive/model-options/model-options.spec.js +1 -1
  29. package/src/directive/non-bindable/non-bindable.js +1 -2
  30. package/src/directive/options/options.js +3 -3
  31. package/src/directive/style/style.js +1 -1
  32. package/src/directive/switch/switch.js +2 -2
  33. package/src/directive/transclude/transclude.js +2 -2
  34. package/src/index.js +0 -461
  35. package/src/loader.js +1 -1
  36. package/src/public.js +1 -1
  37. package/src/router/template-factory.js +2 -2
  38. package/src/router/view-scroll.js +1 -1
  39. package/src/services/browser.js +1 -1
  40. package/src/services/document.js +2 -2
  41. package/src/services/http/http.js +11 -7
  42. package/src/services/log.js +1 -1
  43. package/src/services/template-request.js +1 -1
  44. package/src/shared/jqlite/jqlite.js +380 -351
  45. package/src/shared/jqlite/jqlite.spec.js +73 -82
  46. package/src/shared/utils.js +1 -1
  47. package/src/types.js +451 -0
  48. package/tsconfig.json +1 -1
  49. package/types/animations/shared.d.ts +7 -2
  50. package/types/core/compile/compile.d.ts +2 -1
  51. package/types/core/exception-handler.d.ts +5 -7
  52. package/types/core/interpolate/interpolate.d.ts +1 -1
  53. package/types/core/q/q.d.ts +1 -1
  54. package/types/core/task-tracker-factory.d.ts +5 -5
  55. package/types/core/timeout/timeout.d.ts +2 -2
  56. package/types/directive/bind/bind.d.ts +4 -4
  57. package/types/directive/change/change.d.ts +2 -2
  58. package/types/directive/cloak/cloak.d.ts +2 -2
  59. package/types/directive/include/include.d.ts +2 -2
  60. package/types/directive/init/init.d.ts +2 -2
  61. package/types/directive/list/list.d.ts +2 -2
  62. package/types/directive/model/model.d.ts +13 -7
  63. package/types/directive/model-options/model-options.d.ts +49 -0
  64. package/types/directive/non-bindable/non-bindable.d.ts +2 -3
  65. package/types/directive/style/style.d.ts +2 -2
  66. package/types/directive/switch/switch.d.ts +4 -4
  67. package/types/index.d.ts +1 -702
  68. package/types/public.d.ts +2 -2
  69. package/types/router/template-factory.d.ts +4 -4
  70. package/types/services/browser.d.ts +3 -3
  71. package/types/services/document.d.ts +6 -7
  72. package/types/services/log.d.ts +2 -2
  73. package/types/services/template-request.d.ts +1 -1
  74. package/types/shared/jqlite/jqlite.d.ts +91 -21
  75. package/types/shared/utils.d.ts +2 -2
  76. package/types/types.d.ts +438 -0
  77. package/types-back/index.d.ts +1 -83
  78. package/types-back/jqlite.d.ts +1 -121
  79. package/types-back/global.d.ts +0 -11
@@ -0,0 +1,407 @@
1
+ /\*\*
2
+
3
+ - @ngdoc directive
4
+ - @name ngModelOptions
5
+ - @restrict A
6
+ - @priority 10
7
+ -
8
+ - @description
9
+ - This directive allows you to modify the behaviour of {@link ngModel} directives within your
10
+ - application. You can specify an `ngModelOptions` directive on any element. All {@link ngModel}
11
+ - directives will use the options of their nearest `ngModelOptions` ancestor.
12
+ -
13
+ - The `ngModelOptions` settings are found by evaluating the value of the attribute directive as
14
+ - an AngularJS expression. This expression should evaluate to an object, whose properties contain
15
+ - the settings. For example: `<div ng-model-options="{ debounce: 100 }"`.
16
+ -
17
+ - ## Inheriting Options
18
+ -
19
+ - You can specify that an `ngModelOptions` setting should be inherited from a parent `ngModelOptions`
20
+ - directive by giving it the value of `"$inherit"`.
21
+ - Then it will inherit that setting from the first `ngModelOptions` directive found by traversing up the
22
+ - DOM tree. If there is no ancestor element containing an `ngModelOptions` directive then default settings
23
+ - will be used.
24
+ -
25
+ - For example given the following fragment of HTML
26
+ -
27
+ -
28
+ - ```html
29
+
30
+ ```
31
+
32
+ - <div ng-model-options="{ allowInvalid: true, debounce: 200 }">
33
+ - <form ng-model-options="{ updateOn: 'blur', allowInvalid: '$inherit' }">
34
+ - <input ng-model-options="{ updateOn: 'default', allowInvalid: '$inherit' }" />
35
+ - </form>
36
+ - </div>
37
+ - ```
38
+
39
+ ```
40
+
41
+ -
42
+ - the `input` element will have the following settings
43
+ -
44
+ - ```js
45
+
46
+ ```
47
+
48
+ - { allowInvalid: true, updateOn: 'default', debounce: 0 }
49
+ - ```
50
+
51
+ ```
52
+
53
+ -
54
+ - Notice that the `debounce` setting was not inherited and used the default value instead.
55
+ -
56
+ - You can specify that all undefined settings are automatically inherited from an ancestor by
57
+ - including a property with key of `"*"` and value of `"$inherit"`.
58
+ -
59
+ - For example given the following fragment of HTML
60
+ -
61
+ -
62
+ - ```html
63
+
64
+ ```
65
+
66
+ - <div ng-model-options="{ allowInvalid: true, debounce: 200 }">
67
+ - <form ng-model-options="{ updateOn: 'blur', "*": '$inherit' }">
68
+ - <input ng-model-options="{ updateOn: 'default', "*": '$inherit' }" />
69
+ - </form>
70
+ - </div>
71
+ - ```
72
+
73
+ ```
74
+
75
+ -
76
+ - the `input` element will have the following settings
77
+ -
78
+ - ```js
79
+
80
+ ```
81
+
82
+ - { allowInvalid: true, updateOn: 'default', debounce: 200 }
83
+ - ```
84
+
85
+ ```
86
+
87
+ -
88
+ - Notice that the `debounce` setting now inherits the value from the outer `<div>` element.
89
+ -
90
+ - If you are creating a reusable component then you should be careful when using `"*": "$inherit"`
91
+ - since you may inadvertently inherit a setting in the future that changes the behavior of your component.
92
+ -
93
+ -
94
+ - ## Triggering and debouncing model updates
95
+ -
96
+ - The `updateOn` and `debounce` properties allow you to specify a custom list of events that will
97
+ - trigger a model update and/or a debouncing delay so that the actual update only takes place when
98
+ - a timer expires; this timer will be reset after another change takes place.
99
+ -
100
+ - Given the nature of `ngModelOptions`, the value displayed inside input fields in the view might
101
+ - be different from the value in the actual model. This means that if you update the model you
102
+ - should also invoke {@link ngModel.NgModelController#$rollbackViewValue} on the relevant input field in
103
+ - order to make sure it is synchronized with the model and that any debounced action is canceled.
104
+ -
105
+ - The easiest way to reference the control's {@link ngModel.NgModelController#$rollbackViewValue}
106
+ - method is by making sure the input is placed inside a form that has a `name` attribute. This is
107
+ - important because `form` controllers are published to the related scope under the name in their
108
+ - `name` attribute.
109
+ -
110
+ - Any pending changes will take place immediately when an enclosing form is submitted via the
111
+ - `submit` event. Note that `ngClick` events will occur before the model is updated. Use `ngSubmit`
112
+ - to have access to the updated model.
113
+ -
114
+ - ### Overriding immediate updates
115
+ -
116
+ - The following example shows how to override immediate updates. Changes on the inputs within the
117
+ - form will update the model only when the control loses focus (blur event). If `escape` key is
118
+ - pressed while the input field is focused, the value is reset to the value in the current model.
119
+ -
120
+ - ### Debouncing updates
121
+ -
122
+ - The next example shows how to debounce model changes. Model will be updated only 1 sec after last change.
123
+ - If the `Clear` button is pressed, any debounced action is canceled and the value becomes empty.
124
+ -
125
+ - ### Default events, extra triggers, and catch-all debounce values
126
+ -
127
+ - This example shows the relationship between "default" update events and
128
+ - additional `updateOn` triggers.
129
+ -
130
+ - `default` events are those that are bound to the control, and when fired, update the `$viewValue`
131
+ - via {@link ngModel.NgModelController#$setViewValue $setViewValue}. Every event that is not listed
132
+ - in `updateOn` is considered a "default" event, since different control types have different
133
+ - default events.
134
+ -
135
+ - The control in this example updates by "default", "click", and "blur", with different `debounce`
136
+ - values. You can see that "click" doesn't have an individual `debounce` value -
137
+ - therefore it uses the `*` debounce value.
138
+ -
139
+ - There is also a button that calls {@link ngModel.NgModelController#$setViewValue $setViewValue}
140
+ - directly with a "custom" event. Since "custom" is not defined in the `updateOn` list,
141
+ - it is considered a "default" event and will update the
142
+ - control if "default" is defined in `updateOn`, and will receive the "default" debounce value.
143
+ - Note that this is just to illustrate how custom controls would possibly call `$setViewValue`.
144
+ -
145
+ - You can change the `updateOn` and `debounce` configuration to test different scenarios. This
146
+ - is done with {@link ngModel.NgModelController#$overrideModelOptions $overrideModelOptions}.
147
+ - <example name="ngModelOptions-advanced" module="optionsExample">
148
+ <file name="index.html">
149
+ <model-update-demo></model-update-demo>
150
+ </file>
151
+ <file name="app.js">
152
+ angular.module('optionsExample', [])
153
+ .component('modelUpdateDemo', {
154
+ templateUrl: 'template.html',
155
+ controller: function() {
156
+ this.name = 'Chinua';
157
+
158
+ this.options = {
159
+ updateOn: 'default blur click',
160
+ debounce: {
161
+ default: 2000,
162
+ blur: 0,
163
+ '*': 1000
164
+ }
165
+ };
166
+
167
+ this.updateEvents = function() {
168
+ let eventList = this.options.updateOn.split(' ');
169
+ eventList.push('*');
170
+ let events = {};
171
+
172
+ for (let i = 0; i < eventList.length; i++) {
173
+ events[eventList[i]] = this.options.debounce[eventList[i]];
174
+ }
175
+
176
+ this.events = events;
177
+ };
178
+
179
+ this.updateOptions = function() {
180
+ let options = angular.extend(this.options, {
181
+ updateOn: Object.keys(this.events).join(' ').replace('*', ''),
182
+ debounce: this.events
183
+ });
184
+
185
+ this.form.input.$overrideModelOptions(options);
186
+ };
187
+
188
+ // Initialize the event form
189
+ this.updateEvents();
190
+ }
191
+ });
192
+
193
+ </file>
194
+ <file name="template.html">
195
+ <form name="$ctrl.form">
196
+ Input: <input type="text" name="input" ng-model="$ctrl.name" ng-model-options="$ctrl.options" />
197
+ </form>
198
+ Model: <tt>{{$ctrl.name}}</tt>
199
+ <hr>
200
+ <button ng-click="$ctrl.form.input.$setViewValue('some value', 'custom')">Trigger setViewValue with 'some value' and 'custom' event</button>
201
+
202
+ <hr>
203
+ <form ng-submit="$ctrl.updateOptions()">
204
+ <b>updateOn</b><br>
205
+ <input type="text" ng-model="$ctrl.options.updateOn" ng-change="$ctrl.updateEvents()" ng-model-options="{debounce: 500}">
206
+
207
+ <table>
208
+ <tr>
209
+ <th>Option</th>
210
+ <th>Debounce value</th>
211
+ </tr>
212
+ <tr ng-repeat="(key, value) in $ctrl.events">
213
+ <td>{{key}}</td>
214
+ <td><input type="number" ng-model="$ctrl.events[key]" /></td>
215
+ </tr>
216
+ </table>
217
+
218
+ <br>
219
+ <input type="submit" value="Update options">
220
+ </form>
221
+
222
+ </file>
223
+ </example>
224
+
225
+ -
226
+ -
227
+ - ## Model updates and validation
228
+ -
229
+ - The default behaviour in `ngModel` is that the model value is set to `undefined` when the
230
+ - validation determines that the value is invalid. By setting the `allowInvalid` property to true,
231
+ - the model will still be updated even if the value is invalid.
232
+ -
233
+ -
234
+ - ## Connecting to the scope
235
+ -
236
+ - By setting the `getterSetter` property to true you are telling ngModel that the `ngModel` expression
237
+ - on the scope refers to a "getter/setter" function rather than the value itself.
238
+ -
239
+ - The following example shows how to bind to getter/setters:
240
+ -
241
+ - <example name="ngModelOptions-directive-getter-setter" module="getterSetterExample">
242
+ - <file name="index.html">
243
+ - <div ng-controller="ExampleController">
244
+ - <form name="userForm">
245
+ - <label>
246
+ - Name:
247
+ - <input type="text" name="userName"
248
+ - ng-model="user.name"
249
+ - ng-model-options="{ getterSetter: true }" />
250
+ - </label>
251
+ - </form>
252
+ - <pre>user.name = <span ng-bind="user.name()"></span></pre>
253
+ - </div>
254
+ - </file>
255
+ - <file name="app.js">
256
+ - angular.module('getterSetterExample', [])
257
+ - .controller('ExampleController', ['$scope', function($scope) {
258
+ - let _name = 'Brian';
259
+ - $scope.user = {
260
+ - name: function(newName) {
261
+ - return angular.isDefined(newName) ? (_name = newName) : _name;
262
+ - }
263
+ - };
264
+ - }]);
265
+ - </file>
266
+ - </example>
267
+ -
268
+ -
269
+ - ## Programmatically changing options
270
+ -
271
+ - The `ngModelOptions` expression is only evaluated once when the directive is linked; it is not
272
+ - watched for changes. However, it is possible to override the options on a single
273
+ - {@link ngModel.NgModelController} instance with
274
+ - {@link ngModel.NgModelController#$overrideModelOptions `NgModelController#$overrideModelOptions()`}.
275
+ - See also the example for
276
+ - {@link ngModelOptions#default-events-extra-triggers-and-catch-all-debounce-values
277
+ - Default events, extra triggers, and catch-all debounce values}.
278
+ -
279
+ -
280
+ - ## Specifying timezones
281
+ -
282
+ - You can specify the timezone that date/time input directives expect by providing its name in the
283
+ - `timezone` property.
284
+ -
285
+ -
286
+ - ## Formatting the value of `time` and `datetime-local`
287
+ -
288
+ - With the options `timeSecondsFormat` and `timeStripZeroSeconds` it is possible to adjust the value
289
+ - that is displayed in the control. Note that browsers may apply their own formatting
290
+ - in the user interface.
291
+ - <example name="ngModelOptions-time-format" module="timeExample">
292
+ <file name="index.html">
293
+ <time-example></time-example>
294
+ </file>
295
+ <file name="script.js">
296
+ angular.module('timeExample', [])
297
+ .component('timeExample', {
298
+ templateUrl: 'timeExample.html',
299
+ controller: function() {
300
+ this.time = new Date(1970, 0, 1, 14, 57, 0);
301
+
302
+ this.options = {
303
+ timeSecondsFormat: 'ss',
304
+ timeStripZeroSeconds: true
305
+ };
306
+
307
+ this.optionChange = function() {
308
+ this.timeForm.timeFormatted.$overrideModelOptions(this.options);
309
+ this.time = new Date(this.time);
310
+ };
311
+ }
312
+ });
313
+
314
+ </file>
315
+ <file name="timeExample.html">
316
+ <form name="$ctrl.timeForm">
317
+ <strong>Default</strong>:
318
+ <input type="time" ng-model="$ctrl.time" step="any" /><br>
319
+ <strong>With options</strong>:
320
+ <input type="time" name="timeFormatted" ng-model="$ctrl.time" step="any" ng-model-options="$ctrl.options" />
321
+ <br>
322
+
323
+ Options:<br>
324
+ <code>timeSecondsFormat</code>:
325
+ <input
326
+ type="text"
327
+ ng-model="$ctrl.options.timeSecondsFormat"
328
+ ng-change="$ctrl.optionChange()">
329
+ <br>
330
+ <code>timeStripZeroSeconds</code>:
331
+ <input
332
+ type="checkbox"
333
+ ng-model="$ctrl.options.timeStripZeroSeconds"
334
+ ng-change="$ctrl.optionChange()">
335
+ </form>
336
+
337
+ </file>
338
+
339
+ - </example>
340
+ -
341
+ - @param {Object} ngModelOptions options to apply to {@link ngModel} directives on this element and
342
+ - and its descendents.
343
+ -
344
+ - **General options**:
345
+ -
346
+ - - `updateOn`: string specifying which event should the input be bound to. You can set several
347
+ - events using an space delimited list. There is a special event called `default` that
348
+ - matches the default events belonging to the control. These are the events that are bound to
349
+ - the control, and when fired, update the `$viewValue` via `$setViewValue`.
350
+ -
351
+ - `ngModelOptions` considers every event that is not listed in `updateOn` a "default" event,
352
+ - since different control types use different default events.
353
+ -
354
+ - See also the section {@link ngModelOptions#triggering-and-debouncing-model-updates
355
+ - Triggering and debouncing model updates}.
356
+ -
357
+ - - `debounce`: integer value which contains the debounce model update value in milliseconds. A
358
+ - value of 0 triggers an immediate update. If an object is supplied instead, you can specify a
359
+ - custom value for each event. For example:
360
+ - ```
361
+ - ng-model-options="{
362
+ - updateOn: 'default blur',
363
+ - debounce: { 'default': 500, 'blur': 0 }
364
+ - }"
365
+ - ```
366
+ - You can use the `*` key to specify a debounce value that applies to all events that are not
367
+ - specifically listed. In the following example, `mouseup` would have a debounce delay of 1000:
368
+ - ```
369
+ - ng-model-options="{
370
+ - updateOn: 'default blur mouseup',
371
+ - debounce: { 'default': 500, 'blur': 0, '*': 1000 }
372
+ - }"
373
+ - ```
374
+ - - `allowInvalid`: boolean value which indicates that the model can be set with values that did
375
+ - not validate correctly instead of the default behavior of setting the model to undefined.
376
+ - - `getterSetter`: boolean value which determines whether or not to treat functions bound to
377
+ - `ngModel` as getters/setters.
378
+ -
379
+ -
380
+ - **Input-type specific options**:
381
+ -
382
+ - - `timezone`: Defines the timezone to be used to read/write the `Date` instance in the model for
383
+ - `<input type="date" />`, `<input type="time" />`, ... . It understands UTC/GMT and the
384
+ - continental US time zone abbreviations, but for general use, use a time zone offset, for
385
+ - example, `'+0430'` (4 hours, 30 minutes east of the Greenwich meridian)
386
+ - If not specified, the timezone of the browser will be used.
387
+ - Note that changing the timezone will have no effect on the current date, and is only applied after
388
+ - the next input / model change.
389
+ -
390
+ - - `timeSecondsFormat`: Defines if the `time` and `datetime-local` types should show seconds and
391
+ - milliseconds. The option follows the format string of {@link date date filter}.
392
+ - By default, the options is `undefined` which is equal to `'ss.sss'` (seconds and milliseconds).
393
+ - The other options are `'ss'` (strips milliseconds), and `''` (empty string), which strips both
394
+ - seconds and milliseconds.
395
+ - Note that browsers that support `time` and `datetime-local` require the hour and minutes
396
+ - part of the time string, and may show the value differently in the user interface.
397
+ - {@link ngModelOptions#formatting-the-value-of-time-and-datetime-local- See the example}.
398
+ -
399
+ - - `timeStripZeroSeconds`: Defines if the `time` and `datetime-local` types should strip the
400
+ - seconds and milliseconds from the formatted value if they are zero. This option is applied
401
+ - after `timeSecondsFormat`.
402
+ - This option can be used to make the formatting consistent over different browsers, as some
403
+ - browsers with support for `time` will natively hide the milliseconds and
404
+ - seconds if they are zero, but others won't, and browsers that don't implement these input
405
+ - types will always show the full string.
406
+ - {@link ngModelOptions#formatting-the-value-of-time-and-datetime-local- See the example}.
407
+ - \*/
@@ -22,7 +22,7 @@ describe("ngModelOptions", () => {
22
22
  expect(defaultModelOptions.getOption("debounce")).toBe(0);
23
23
  expect(defaultModelOptions.getOption("getterSetter")).toBe(false);
24
24
  expect(defaultModelOptions.getOption("allowInvalid")).toBe(false);
25
- expect(defaultModelOptions.getOption("timezone")).toBe(null);
25
+ //expect(defaultModelOptions.getOption("timezone")).toBe(null);
26
26
  });
27
27
  });
28
28
 
@@ -1,6 +1,5 @@
1
1
  /**
2
- *
3
- * @returns {angular.IDirective}
2
+ * @returns {import('../../types').Directive}
4
3
  */
5
4
  export function ngNonBindableDirective() {
6
5
  return {
@@ -1,4 +1,4 @@
1
- import { JQLite, JQLiteRemove, startingTag } from "../../shared/jqlite/jqlite";
1
+ import { JQLite, removeElement, startingTag } from "../../shared/jqlite/jqlite";
2
2
  import {
3
3
  equals,
4
4
  forEach,
@@ -594,9 +594,9 @@ export const ngOptionsDirective = [
594
594
  for (let i = options.items.length - 1; i >= 0; i--) {
595
595
  const option = options.items[i];
596
596
  if (isDefined(option.group)) {
597
- JQLiteRemove(option.element.parentNode);
597
+ removeElement(option.element.parentNode);
598
598
  } else {
599
- JQLiteRemove(option.element);
599
+ removeElement(option.element);
600
600
  }
601
601
  }
602
602
  }
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @returns {angular.IDirective}
2
+ * @returns {import('../../types').Directive}
3
3
  */
4
4
  export function ngStyleDirective() {
5
5
  return {
@@ -71,7 +71,7 @@ export const ngSwitchDirective = [
71
71
  ];
72
72
 
73
73
  /**
74
- * @returns {angular.IDirective}
74
+ * @returns {import('../../types').Directive}
75
75
  */
76
76
  export function ngSwitchWhenDirective() {
77
77
  return {
@@ -101,7 +101,7 @@ export function ngSwitchWhenDirective() {
101
101
  }
102
102
 
103
103
  /**
104
- * @returns {angular.IDirective}
104
+ * @returns {import('../../types').Directive}
105
105
  */
106
106
  export function ngSwitchDefaultDirective() {
107
107
  return {
@@ -4,7 +4,7 @@ import { startingTag } from "../../shared/jqlite/jqlite";
4
4
  /**
5
5
  * @ngdoc directive
6
6
  * @name ngTransclude
7
- * @restrict EAC
7
+ * @restrict EA
8
8
  *
9
9
  * @description
10
10
  * Directive that marks the insertion point for the transcluded DOM of the nearest parent directive that uses transclusion.
@@ -27,7 +27,7 @@ export const ngTranscludeDirective = [
27
27
  "$compile",
28
28
  function ($compile) {
29
29
  return {
30
- restrict: "EAC",
30
+ restrict: "EA",
31
31
  compile: function ngTranscludeCompile(tElement) {
32
32
  // Remove and cache any original content to act as a fallback
33
33
  const fallbackLinkFn = $compile(tElement[0].childNodes);