@angular/core 2.0.0-rc.1 → 2.0.0-rc.2

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 (624) hide show
  1. package/{core.umd.js → bundles/core.umd.js} +6402 -4606
  2. package/bundles/core.umd.min.js +6 -0
  3. package/esm/index.d.ts +5 -4
  4. package/esm/index.js +9 -8
  5. package/esm/index.js.map +1 -1
  6. package/esm/private_export.d.ts +96 -11
  7. package/esm/private_export.js +39 -10
  8. package/esm/private_export.js.map +1 -1
  9. package/esm/private_export.metadata.json +1 -1
  10. package/esm/src/animation/active_animation_players_map.d.ts +11 -0
  11. package/esm/src/animation/active_animation_players_map.js +47 -0
  12. package/esm/src/animation/active_animation_players_map.js.map +1 -0
  13. package/esm/src/animation/animation_constants.d.ts +4 -0
  14. package/esm/src/animation/animation_constants.js +5 -0
  15. package/esm/src/animation/animation_constants.js.map +1 -0
  16. package/esm/src/animation/animation_constants.metadata.json +1 -0
  17. package/esm/src/animation/animation_driver.d.ts +9 -0
  18. package/esm/src/animation/animation_driver.js +9 -0
  19. package/esm/src/animation/animation_driver.js.map +1 -0
  20. package/esm/src/animation/animation_group_player.d.ts +18 -0
  21. package/esm/src/animation/animation_group_player.js +60 -0
  22. package/esm/src/animation/animation_group_player.js.map +1 -0
  23. package/esm/src/animation/animation_keyframe.d.ts +6 -0
  24. package/esm/src/animation/animation_keyframe.js +7 -0
  25. package/esm/src/animation/animation_keyframe.js.map +1 -0
  26. package/esm/src/animation/animation_player.d.ts +26 -0
  27. package/esm/src/animation/animation_player.js +30 -0
  28. package/esm/src/animation/animation_player.js.map +1 -0
  29. package/esm/src/animation/animation_sequence_player.d.ts +21 -0
  30. package/esm/src/animation/animation_sequence_player.js +64 -0
  31. package/esm/src/animation/animation_sequence_player.js.map +1 -0
  32. package/esm/src/animation/animation_style_util.d.ts +32 -0
  33. package/esm/src/animation/animation_style_util.js +91 -0
  34. package/esm/src/animation/animation_style_util.js.map +1 -0
  35. package/esm/src/animation/animation_style_util.metadata.json +1 -0
  36. package/esm/src/animation/animation_styles.d.ts +8 -0
  37. package/esm/src/animation/animation_styles.js +6 -0
  38. package/esm/src/animation/animation_styles.js.map +1 -0
  39. package/esm/src/animation/metadata.d.ts +511 -0
  40. package/esm/src/animation/metadata.js +565 -0
  41. package/esm/src/animation/metadata.js.map +1 -0
  42. package/esm/src/animation/metadata.metadata.json +1 -0
  43. package/esm/src/application_common_providers.d.ts +1 -0
  44. package/esm/src/application_common_providers.js +5 -4
  45. package/esm/src/application_common_providers.js.map +1 -1
  46. package/esm/src/application_common_providers.metadata.json +1 -1
  47. package/esm/src/application_ref.d.ts +17 -41
  48. package/esm/src/application_ref.js +32 -23
  49. package/esm/src/application_ref.js.map +1 -1
  50. package/esm/src/application_ref.metadata.json +1 -1
  51. package/esm/src/application_tokens.d.ts +6 -1
  52. package/esm/src/application_tokens.js +9 -4
  53. package/esm/src/application_tokens.js.map +1 -1
  54. package/esm/src/application_tokens.metadata.json +1 -1
  55. package/esm/src/change_detection/change_detection.d.ts +9 -8
  56. package/esm/src/change_detection/change_detection.js +7 -7
  57. package/esm/src/change_detection/change_detection.js.map +1 -1
  58. package/esm/src/change_detection/change_detection.metadata.json +1 -1
  59. package/esm/src/change_detection/change_detection_util.d.ts +3 -1
  60. package/esm/src/change_detection/change_detection_util.js +6 -5
  61. package/esm/src/change_detection/change_detection_util.js.map +1 -1
  62. package/esm/src/change_detection/change_detection_util.metadata.json +1 -1
  63. package/esm/src/change_detection/change_detector_ref.d.ts +3 -0
  64. package/esm/src/change_detection/change_detector_ref.js +3 -0
  65. package/esm/src/change_detection/change_detector_ref.js.map +1 -1
  66. package/esm/src/change_detection/constants.d.ts +1 -0
  67. package/esm/src/change_detection/constants.js +4 -3
  68. package/esm/src/change_detection/constants.js.map +1 -1
  69. package/esm/src/change_detection/constants.metadata.json +1 -1
  70. package/esm/src/change_detection/differs/default_iterable_differ.d.ts +6 -94
  71. package/esm/src/change_detection/differs/default_iterable_differ.js +25 -18
  72. package/esm/src/change_detection/differs/default_iterable_differ.js.map +1 -1
  73. package/esm/src/change_detection/differs/default_keyvalue_differ.d.ts +3 -30
  74. package/esm/src/change_detection/differs/default_keyvalue_differ.js +13 -8
  75. package/esm/src/change_detection/differs/default_keyvalue_differ.js.map +1 -1
  76. package/esm/src/change_detection/differs/iterable_differs.d.ts +4 -1
  77. package/esm/src/change_detection/differs/iterable_differs.js +5 -4
  78. package/esm/src/change_detection/differs/iterable_differs.js.map +1 -1
  79. package/esm/src/change_detection/differs/keyvalue_differs.d.ts +2 -1
  80. package/esm/src/change_detection/differs/keyvalue_differs.js +5 -4
  81. package/esm/src/change_detection/differs/keyvalue_differs.js.map +1 -1
  82. package/esm/src/change_detection/pipe_transform.js.map +1 -1
  83. package/esm/src/change_detection.d.ts +1 -1
  84. package/esm/src/change_detection.js +5 -5
  85. package/esm/src/change_detection.js.map +1 -1
  86. package/esm/src/console.js +2 -1
  87. package/esm/src/console.js.map +1 -1
  88. package/esm/src/console.metadata.json +1 -1
  89. package/esm/src/debug/debug_node.d.ts +20 -2
  90. package/esm/src/debug/debug_node.js +16 -2
  91. package/esm/src/debug/debug_node.js.map +1 -1
  92. package/esm/src/debug/debug_node.metadata.json +1 -0
  93. package/esm/src/debug/debug_renderer.d.ts +10 -6
  94. package/esm/src/debug/debug_renderer.js +13 -2
  95. package/esm/src/debug/debug_renderer.js.map +1 -1
  96. package/esm/src/di/decorators.d.ts +13 -1
  97. package/esm/src/di/decorators.js +7 -1
  98. package/esm/src/di/decorators.js.map +1 -1
  99. package/esm/src/di/decorators.metadata.json +1 -1
  100. package/esm/src/di/forward_ref.d.ts +3 -1
  101. package/esm/src/di/forward_ref.js +3 -1
  102. package/esm/src/di/forward_ref.js.map +1 -1
  103. package/esm/src/di/injector.d.ts +4 -1
  104. package/esm/src/di/injector.js +5 -2
  105. package/esm/src/di/injector.js.map +1 -1
  106. package/esm/src/di/injector.metadata.json +1 -1
  107. package/esm/src/di/metadata.d.ts +8 -1
  108. package/esm/src/di/metadata.js +10 -3
  109. package/esm/src/di/metadata.js.map +1 -1
  110. package/esm/src/di/opaque_token.d.ts +2 -1
  111. package/esm/src/di/opaque_token.js +22 -21
  112. package/esm/src/di/opaque_token.js.map +1 -1
  113. package/esm/src/di/provider.d.ts +11 -10
  114. package/esm/src/di/provider.js +17 -14
  115. package/esm/src/di/provider.js.map +1 -1
  116. package/esm/src/di/provider.metadata.json +1 -0
  117. package/esm/src/di/provider_util.js.map +1 -1
  118. package/esm/src/di/provider_util.metadata.json +1 -0
  119. package/esm/src/di/reflective_exceptions.d.ts +11 -16
  120. package/esm/src/di/reflective_exceptions.js +28 -22
  121. package/esm/src/di/reflective_exceptions.js.map +1 -1
  122. package/esm/src/di/reflective_injector.d.ts +3 -33
  123. package/esm/src/di/reflective_injector.js +10 -7
  124. package/esm/src/di/reflective_injector.js.map +1 -1
  125. package/esm/src/di/reflective_key.d.ts +1 -8
  126. package/esm/src/di/reflective_key.js +3 -2
  127. package/esm/src/di/reflective_key.js.map +1 -1
  128. package/esm/src/di/reflective_provider.d.ts +2 -1
  129. package/esm/src/di/reflective_provider.js +6 -5
  130. package/esm/src/di/reflective_provider.js.map +1 -1
  131. package/esm/src/di/reflective_provider.metadata.json +1 -0
  132. package/esm/src/di.d.ts +2 -2
  133. package/esm/src/di.js +6 -6
  134. package/esm/src/di.js.map +1 -1
  135. package/esm/src/facade/async.d.ts +11 -4
  136. package/esm/src/facade/async.js +25 -15
  137. package/esm/src/facade/async.js.map +1 -1
  138. package/esm/src/facade/base_wrapped_exception.js +4 -4
  139. package/esm/src/facade/base_wrapped_exception.js.map +1 -1
  140. package/esm/src/facade/collection.js +1 -1
  141. package/esm/src/facade/collection.js.map +1 -1
  142. package/esm/src/facade/collection.metadata.json +1 -1
  143. package/esm/src/facade/exception_handler.d.ts +2 -11
  144. package/esm/src/facade/exception_handler.js +8 -7
  145. package/esm/src/facade/exception_handler.js.map +1 -1
  146. package/esm/src/facade/exceptions.d.ts +4 -0
  147. package/esm/src/facade/exceptions.js +6 -2
  148. package/esm/src/facade/exceptions.js.map +1 -1
  149. package/esm/src/facade/exceptions.metadata.json +1 -0
  150. package/esm/src/facade/lang.d.ts +6 -4
  151. package/esm/src/facade/lang.js +12 -11
  152. package/esm/src/facade/lang.js.map +1 -1
  153. package/esm/src/facade/lang.metadata.json +1 -1
  154. package/esm/src/facade/math.d.ts +2 -0
  155. package/esm/src/facade/math.js +4 -0
  156. package/esm/src/facade/math.js.map +1 -0
  157. package/esm/src/facade/math.metadata.json +1 -0
  158. package/esm/src/facade/promise.js.map +1 -1
  159. package/esm/src/linker/component_factory.d.ts +5 -4
  160. package/esm/src/linker/component_factory.js +7 -3
  161. package/esm/src/linker/component_factory.js.map +1 -1
  162. package/esm/src/linker/component_resolver.d.ts +5 -4
  163. package/esm/src/linker/component_resolver.js +12 -7
  164. package/esm/src/linker/component_resolver.js.map +1 -1
  165. package/esm/src/linker/component_resolver.metadata.json +1 -1
  166. package/esm/src/linker/debug_context.js +5 -4
  167. package/esm/src/linker/debug_context.js.map +1 -1
  168. package/esm/src/linker/dynamic_component_loader.d.ts +5 -6
  169. package/esm/src/linker/dynamic_component_loader.js +5 -3
  170. package/esm/src/linker/dynamic_component_loader.js.map +1 -1
  171. package/esm/src/linker/dynamic_component_loader.metadata.json +1 -1
  172. package/esm/src/linker/element.d.ts +3 -3
  173. package/esm/src/linker/element.js +5 -5
  174. package/esm/src/linker/element.js.map +1 -1
  175. package/esm/src/linker/element_injector.js.map +1 -1
  176. package/esm/src/linker/element_ref.d.ts +1 -0
  177. package/esm/src/linker/element_ref.js +5 -5
  178. package/esm/src/linker/element_ref.js.map +1 -1
  179. package/esm/src/linker/exceptions.d.ts +4 -1
  180. package/esm/src/linker/exceptions.js +4 -1
  181. package/esm/src/linker/exceptions.js.map +1 -1
  182. package/esm/src/linker/query_list.d.ts +3 -10
  183. package/esm/src/linker/query_list.js +8 -7
  184. package/esm/src/linker/query_list.js.map +1 -1
  185. package/esm/src/linker/systemjs_component_resolver.d.ts +21 -0
  186. package/esm/src/linker/systemjs_component_resolver.js +44 -0
  187. package/esm/src/linker/systemjs_component_resolver.js.map +1 -0
  188. package/esm/src/linker/template_ref.d.ts +2 -1
  189. package/esm/src/linker/template_ref.js +1 -0
  190. package/esm/src/linker/template_ref.js.map +1 -1
  191. package/esm/src/linker/view.d.ts +12 -1
  192. package/esm/src/linker/view.js +62 -16
  193. package/esm/src/linker/view.js.map +1 -1
  194. package/esm/src/linker/view_container_ref.d.ts +2 -10
  195. package/esm/src/linker/view_container_ref.js +4 -3
  196. package/esm/src/linker/view_container_ref.js.map +1 -1
  197. package/esm/src/linker/view_ref.d.ts +5 -1
  198. package/esm/src/linker/view_ref.js +6 -2
  199. package/esm/src/linker/view_ref.js.map +1 -1
  200. package/esm/src/linker/view_type.js.map +1 -1
  201. package/esm/src/linker/view_utils.d.ts +2 -4
  202. package/esm/src/linker/view_utils.js +21 -21
  203. package/esm/src/linker/view_utils.js.map +1 -1
  204. package/esm/src/linker/view_utils.metadata.json +1 -1
  205. package/esm/src/linker.d.ts +5 -4
  206. package/esm/src/linker.js +5 -4
  207. package/esm/src/linker.js.map +1 -1
  208. package/esm/src/metadata/di.d.ts +8 -1
  209. package/esm/src/metadata/di.js +10 -3
  210. package/esm/src/metadata/di.js.map +1 -1
  211. package/esm/src/metadata/directives.d.ts +104 -20
  212. package/esm/src/metadata/directives.js +25 -19
  213. package/esm/src/metadata/directives.js.map +1 -1
  214. package/esm/src/metadata/lifecycle_hooks.d.ts +46 -31
  215. package/esm/src/metadata/lifecycle_hooks.js +464 -10
  216. package/esm/src/metadata/lifecycle_hooks.js.map +1 -1
  217. package/esm/src/metadata/lifecycle_hooks.metadata.json +1 -1
  218. package/esm/src/metadata/view.d.ts +6 -2
  219. package/esm/src/metadata/view.js +3 -1
  220. package/esm/src/metadata/view.js.map +1 -1
  221. package/esm/src/metadata/view.metadata.json +1 -1
  222. package/esm/src/metadata.d.ts +49 -15
  223. package/esm/src/metadata.js +35 -10
  224. package/esm/src/metadata.js.map +1 -1
  225. package/esm/src/metadata.metadata.json +1 -1
  226. package/esm/src/platform_common_providers.d.ts +1 -0
  227. package/esm/src/platform_common_providers.js +3 -3
  228. package/esm/src/platform_common_providers.js.map +1 -1
  229. package/esm/src/platform_common_providers.metadata.json +1 -1
  230. package/esm/src/platform_directives_and_pipes.d.ts +48 -45
  231. package/esm/src/platform_directives_and_pipes.js +50 -47
  232. package/esm/src/platform_directives_and_pipes.js.map +1 -1
  233. package/esm/src/platform_directives_and_pipes.metadata.json +1 -1
  234. package/esm/src/profile/profile.d.ts +5 -1
  235. package/esm/src/profile/profile.js +4 -0
  236. package/esm/src/profile/profile.js.map +1 -1
  237. package/esm/src/profile/profile.metadata.json +1 -1
  238. package/esm/src/profile/wtf_impl.js +1 -1
  239. package/esm/src/profile/wtf_impl.js.map +1 -1
  240. package/esm/src/profile/wtf_impl.metadata.json +1 -0
  241. package/esm/src/profile/wtf_init.js +2 -2
  242. package/esm/src/profile/wtf_init.js.map +1 -1
  243. package/esm/src/reflection/platform_reflection_capabilities.d.ts +4 -3
  244. package/esm/src/reflection/platform_reflection_capabilities.js.map +1 -1
  245. package/esm/src/reflection/reflection.d.ts +1 -1
  246. package/esm/src/reflection/reflection.js +2 -2
  247. package/esm/src/reflection/reflection.js.map +1 -1
  248. package/esm/src/reflection/reflection.metadata.json +1 -1
  249. package/esm/src/reflection/reflection_capabilities.d.ts +4 -5
  250. package/esm/src/reflection/reflection_capabilities.js +22 -10
  251. package/esm/src/reflection/reflection_capabilities.js.map +1 -1
  252. package/esm/src/reflection/reflector.d.ts +8 -20
  253. package/esm/src/reflection/reflector.js +13 -3
  254. package/esm/src/reflection/reflector.js.map +1 -1
  255. package/esm/src/reflection/reflector_reader.js +3 -3
  256. package/esm/src/reflection/reflector_reader.js.map +1 -1
  257. package/esm/src/reflection/types.js.map +1 -1
  258. package/esm/src/render/api.d.ts +17 -6
  259. package/esm/src/render/api.js +8 -1
  260. package/esm/src/render/api.js.map +1 -1
  261. package/esm/src/render.d.ts +1 -1
  262. package/esm/src/render.js +1 -1
  263. package/esm/src/render.js.map +1 -1
  264. package/esm/src/security.js +6 -6
  265. package/esm/src/security.js.map +1 -1
  266. package/esm/src/testability/testability.d.ts +3 -19
  267. package/esm/src/testability/testability.js +10 -5
  268. package/esm/src/testability/testability.js.map +1 -1
  269. package/esm/src/testability/testability.metadata.json +1 -1
  270. package/esm/src/util/decorators.d.ts +2 -1
  271. package/esm/src/util/decorators.js +10 -9
  272. package/esm/src/util/decorators.js.map +1 -1
  273. package/esm/src/util.js.map +1 -1
  274. package/esm/src/zone/ng_zone.d.ts +6 -17
  275. package/esm/src/zone/ng_zone.js +7 -6
  276. package/esm/src/zone/ng_zone.js.map +1 -1
  277. package/esm/src/zone/ng_zone_impl.d.ts +1 -4
  278. package/esm/src/zone/ng_zone_impl.js +3 -2
  279. package/esm/src/zone/ng_zone_impl.js.map +1 -1
  280. package/esm/src/zone.js.map +1 -1
  281. package/esm/testing/async.js +20 -22
  282. package/esm/testing/async.js.map +1 -1
  283. package/esm/testing/async.metadata.json +1 -0
  284. package/esm/testing/async_test_completer.js.map +1 -1
  285. package/esm/testing/fake_async.d.ts +4 -1
  286. package/esm/testing/fake_async.js +9 -2
  287. package/esm/testing/fake_async.js.map +1 -1
  288. package/esm/testing/lang_utils.js +1 -1
  289. package/esm/testing/lang_utils.js.map +1 -1
  290. package/esm/testing/lang_utils.metadata.json +1 -0
  291. package/esm/testing/logger.js +5 -3
  292. package/esm/testing/logger.js.map +1 -1
  293. package/esm/testing/logger.metadata.json +1 -1
  294. package/esm/testing/mock_application_ref.d.ts +1 -1
  295. package/esm/testing/mock_application_ref.js +1 -0
  296. package/esm/testing/mock_application_ref.js.map +1 -1
  297. package/esm/testing/mock_application_ref.metadata.json +1 -1
  298. package/esm/testing/ng_zone_mock.d.ts +0 -1
  299. package/esm/testing/ng_zone_mock.js +2 -1
  300. package/esm/testing/ng_zone_mock.js.map +1 -1
  301. package/esm/testing/ng_zone_mock.metadata.json +1 -1
  302. package/esm/testing/regexp.js +1 -1
  303. package/esm/testing/regexp.js.map +1 -1
  304. package/esm/testing/regexp.metadata.json +1 -0
  305. package/esm/testing/test_injector.d.ts +6 -12
  306. package/esm/testing/test_injector.js +4 -10
  307. package/esm/testing/test_injector.js.map +1 -1
  308. package/esm/testing/test_injector.metadata.json +1 -0
  309. package/esm/testing/testing.d.ts +2 -2
  310. package/esm/testing/testing.js +2 -2
  311. package/esm/testing/testing.js.map +1 -1
  312. package/esm/testing/testing.metadata.json +1 -1
  313. package/esm/testing.js.map +1 -1
  314. package/index.d.ts +5 -4
  315. package/index.js +10 -8
  316. package/index.js.map +1 -1
  317. package/package.json +5 -1
  318. package/private_export.d.ts +96 -11
  319. package/private_export.js +39 -10
  320. package/private_export.js.map +1 -1
  321. package/private_export.metadata.json +1 -1
  322. package/src/animation/active_animation_players_map.d.ts +11 -0
  323. package/src/animation/active_animation_players_map.js +54 -0
  324. package/src/animation/active_animation_players_map.js.map +1 -0
  325. package/src/animation/animation_constants.d.ts +4 -0
  326. package/src/animation/animation_constants.js +6 -0
  327. package/src/animation/animation_constants.js.map +1 -0
  328. package/src/animation/animation_constants.metadata.json +1 -0
  329. package/src/animation/animation_driver.d.ts +9 -0
  330. package/src/animation/animation_driver.js +25 -0
  331. package/src/animation/animation_driver.js.map +1 -0
  332. package/src/animation/animation_group_player.d.ts +18 -0
  333. package/src/animation/animation_group_player.js +64 -0
  334. package/src/animation/animation_group_player.js.map +1 -0
  335. package/src/animation/animation_keyframe.d.ts +6 -0
  336. package/src/animation/animation_keyframe.js +10 -0
  337. package/src/animation/animation_keyframe.js.map +1 -0
  338. package/src/animation/animation_player.d.ts +26 -0
  339. package/src/animation/animation_player.js +42 -0
  340. package/src/animation/animation_player.js.map +1 -0
  341. package/src/animation/animation_sequence_player.d.ts +21 -0
  342. package/src/animation/animation_sequence_player.js +69 -0
  343. package/src/animation/animation_sequence_player.js.map +1 -0
  344. package/src/animation/animation_style_util.d.ts +32 -0
  345. package/src/animation/animation_style_util.js +99 -0
  346. package/src/animation/animation_style_util.js.map +1 -0
  347. package/src/animation/animation_style_util.metadata.json +1 -0
  348. package/src/animation/animation_styles.d.ts +8 -0
  349. package/src/animation/animation_styles.js +9 -0
  350. package/src/animation/animation_styles.js.map +1 -0
  351. package/src/animation/metadata.d.ts +511 -0
  352. package/src/animation/metadata.js +627 -0
  353. package/src/animation/metadata.js.map +1 -0
  354. package/src/animation/metadata.metadata.json +1 -0
  355. package/src/application_common_providers.d.ts +1 -0
  356. package/src/application_common_providers.js +4 -3
  357. package/src/application_common_providers.js.map +1 -1
  358. package/src/application_common_providers.metadata.json +1 -1
  359. package/src/application_ref.d.ts +17 -41
  360. package/src/application_ref.js +30 -21
  361. package/src/application_ref.js.map +1 -1
  362. package/src/application_ref.metadata.json +1 -1
  363. package/src/application_tokens.d.ts +6 -1
  364. package/src/application_tokens.js +9 -4
  365. package/src/application_tokens.js.map +1 -1
  366. package/src/application_tokens.metadata.json +1 -1
  367. package/src/change_detection/change_detection.d.ts +9 -8
  368. package/src/change_detection/change_detection.js +21 -21
  369. package/src/change_detection/change_detection.js.map +1 -1
  370. package/src/change_detection/change_detection.metadata.json +1 -1
  371. package/src/change_detection/change_detection_util.d.ts +3 -1
  372. package/src/change_detection/change_detection_util.js +6 -5
  373. package/src/change_detection/change_detection_util.js.map +1 -1
  374. package/src/change_detection/change_detection_util.metadata.json +1 -1
  375. package/src/change_detection/change_detector_ref.d.ts +3 -0
  376. package/src/change_detection/change_detector_ref.js +3 -0
  377. package/src/change_detection/change_detector_ref.js.map +1 -1
  378. package/src/change_detection/constants.d.ts +1 -0
  379. package/src/change_detection/constants.js +4 -3
  380. package/src/change_detection/constants.js.map +1 -1
  381. package/src/change_detection/constants.metadata.json +1 -1
  382. package/src/change_detection/differs/default_iterable_differ.d.ts +6 -94
  383. package/src/change_detection/differs/default_iterable_differ.js +25 -18
  384. package/src/change_detection/differs/default_iterable_differ.js.map +1 -1
  385. package/src/change_detection/differs/default_keyvalue_differ.d.ts +3 -30
  386. package/src/change_detection/differs/default_keyvalue_differ.js +13 -8
  387. package/src/change_detection/differs/default_keyvalue_differ.js.map +1 -1
  388. package/src/change_detection/differs/iterable_differs.d.ts +4 -1
  389. package/src/change_detection/differs/iterable_differs.js +4 -3
  390. package/src/change_detection/differs/iterable_differs.js.map +1 -1
  391. package/src/change_detection/differs/keyvalue_differs.d.ts +2 -1
  392. package/src/change_detection/differs/keyvalue_differs.js +4 -3
  393. package/src/change_detection/differs/keyvalue_differs.js.map +1 -1
  394. package/src/change_detection/pipe_transform.js.map +1 -1
  395. package/src/change_detection.d.ts +1 -1
  396. package/src/change_detection.js +9 -9
  397. package/src/change_detection.js.map +1 -1
  398. package/src/console.js +2 -1
  399. package/src/console.js.map +1 -1
  400. package/src/console.metadata.json +1 -1
  401. package/src/debug/debug_node.d.ts +20 -2
  402. package/src/debug/debug_node.js +16 -2
  403. package/src/debug/debug_node.js.map +1 -1
  404. package/src/debug/debug_node.metadata.json +1 -0
  405. package/src/debug/debug_renderer.d.ts +10 -6
  406. package/src/debug/debug_renderer.js +12 -1
  407. package/src/debug/debug_renderer.js.map +1 -1
  408. package/src/di/decorators.d.ts +13 -1
  409. package/src/di/decorators.js +7 -1
  410. package/src/di/decorators.js.map +1 -1
  411. package/src/di/decorators.metadata.json +1 -1
  412. package/src/di/forward_ref.d.ts +3 -1
  413. package/src/di/forward_ref.js +3 -1
  414. package/src/di/forward_ref.js.map +1 -1
  415. package/src/di/injector.d.ts +4 -1
  416. package/src/di/injector.js +5 -2
  417. package/src/di/injector.js.map +1 -1
  418. package/src/di/injector.metadata.json +1 -1
  419. package/src/di/metadata.d.ts +8 -1
  420. package/src/di/metadata.js +10 -3
  421. package/src/di/metadata.js.map +1 -1
  422. package/src/di/opaque_token.d.ts +2 -1
  423. package/src/di/opaque_token.js +22 -21
  424. package/src/di/opaque_token.js.map +1 -1
  425. package/src/di/provider.d.ts +11 -10
  426. package/src/di/provider.js +17 -14
  427. package/src/di/provider.js.map +1 -1
  428. package/src/di/provider.metadata.json +1 -0
  429. package/src/di/provider_util.js.map +1 -1
  430. package/src/di/provider_util.metadata.json +1 -0
  431. package/src/di/reflective_exceptions.d.ts +11 -16
  432. package/src/di/reflective_exceptions.js +28 -22
  433. package/src/di/reflective_exceptions.js.map +1 -1
  434. package/src/di/reflective_injector.d.ts +3 -33
  435. package/src/di/reflective_injector.js +9 -6
  436. package/src/di/reflective_injector.js.map +1 -1
  437. package/src/di/reflective_key.d.ts +1 -8
  438. package/src/di/reflective_key.js +3 -2
  439. package/src/di/reflective_key.js.map +1 -1
  440. package/src/di/reflective_provider.d.ts +2 -1
  441. package/src/di/reflective_provider.js +6 -5
  442. package/src/di/reflective_provider.js.map +1 -1
  443. package/src/di/reflective_provider.metadata.json +1 -0
  444. package/src/di.d.ts +2 -2
  445. package/src/di.js +7 -9
  446. package/src/di.js.map +1 -1
  447. package/src/facade/async.d.ts +11 -4
  448. package/src/facade/async.js +27 -17
  449. package/src/facade/async.js.map +1 -1
  450. package/src/facade/base_wrapped_exception.js +4 -4
  451. package/src/facade/base_wrapped_exception.js.map +1 -1
  452. package/src/facade/collection.js.map +1 -1
  453. package/src/facade/collection.metadata.json +1 -1
  454. package/src/facade/exception_handler.d.ts +2 -11
  455. package/src/facade/exception_handler.js +8 -7
  456. package/src/facade/exception_handler.js.map +1 -1
  457. package/src/facade/exceptions.d.ts +4 -0
  458. package/src/facade/exceptions.js +6 -2
  459. package/src/facade/exceptions.js.map +1 -1
  460. package/src/facade/exceptions.metadata.json +1 -0
  461. package/src/facade/lang.d.ts +6 -4
  462. package/src/facade/lang.js +12 -11
  463. package/src/facade/lang.js.map +1 -1
  464. package/src/facade/lang.metadata.json +1 -1
  465. package/src/facade/math.d.ts +2 -0
  466. package/src/facade/math.js +5 -0
  467. package/src/facade/math.js.map +1 -0
  468. package/src/facade/math.metadata.json +1 -0
  469. package/src/facade/promise.js.map +1 -1
  470. package/src/linker/component_factory.d.ts +5 -4
  471. package/src/linker/component_factory.js +7 -3
  472. package/src/linker/component_factory.js.map +1 -1
  473. package/src/linker/component_resolver.d.ts +5 -4
  474. package/src/linker/component_resolver.js +12 -7
  475. package/src/linker/component_resolver.js.map +1 -1
  476. package/src/linker/component_resolver.metadata.json +1 -1
  477. package/src/linker/debug_context.js +5 -4
  478. package/src/linker/debug_context.js.map +1 -1
  479. package/src/linker/dynamic_component_loader.d.ts +5 -6
  480. package/src/linker/dynamic_component_loader.js +5 -3
  481. package/src/linker/dynamic_component_loader.js.map +1 -1
  482. package/src/linker/dynamic_component_loader.metadata.json +1 -1
  483. package/src/linker/element.d.ts +3 -3
  484. package/src/linker/element.js +5 -5
  485. package/src/linker/element.js.map +1 -1
  486. package/src/linker/element_injector.js.map +1 -1
  487. package/src/linker/element_ref.d.ts +1 -0
  488. package/src/linker/element_ref.js +5 -5
  489. package/src/linker/element_ref.js.map +1 -1
  490. package/src/linker/exceptions.d.ts +4 -1
  491. package/src/linker/exceptions.js +4 -1
  492. package/src/linker/exceptions.js.map +1 -1
  493. package/src/linker/query_list.d.ts +3 -10
  494. package/src/linker/query_list.js +8 -7
  495. package/src/linker/query_list.js.map +1 -1
  496. package/src/linker/systemjs_component_resolver.d.ts +21 -0
  497. package/src/linker/systemjs_component_resolver.js +52 -0
  498. package/src/linker/systemjs_component_resolver.js.map +1 -0
  499. package/src/linker/template_ref.d.ts +2 -1
  500. package/src/linker/template_ref.js +1 -0
  501. package/src/linker/template_ref.js.map +1 -1
  502. package/src/linker/view.d.ts +12 -1
  503. package/src/linker/view.js +65 -15
  504. package/src/linker/view.js.map +1 -1
  505. package/src/linker/view_container_ref.d.ts +2 -10
  506. package/src/linker/view_container_ref.js +4 -3
  507. package/src/linker/view_container_ref.js.map +1 -1
  508. package/src/linker/view_ref.d.ts +5 -1
  509. package/src/linker/view_ref.js +6 -2
  510. package/src/linker/view_ref.js.map +1 -1
  511. package/src/linker/view_type.js.map +1 -1
  512. package/src/linker/view_utils.d.ts +2 -4
  513. package/src/linker/view_utils.js +21 -21
  514. package/src/linker/view_utils.js.map +1 -1
  515. package/src/linker/view_utils.metadata.json +1 -1
  516. package/src/linker.d.ts +5 -4
  517. package/src/linker.js +12 -9
  518. package/src/linker.js.map +1 -1
  519. package/src/metadata/di.d.ts +8 -1
  520. package/src/metadata/di.js +10 -3
  521. package/src/metadata/di.js.map +1 -1
  522. package/src/metadata/directives.d.ts +104 -20
  523. package/src/metadata/directives.js +25 -27
  524. package/src/metadata/directives.js.map +1 -1
  525. package/src/metadata/lifecycle_hooks.d.ts +46 -31
  526. package/src/metadata/lifecycle_hooks.js +496 -10
  527. package/src/metadata/lifecycle_hooks.js.map +1 -1
  528. package/src/metadata/lifecycle_hooks.metadata.json +1 -1
  529. package/src/metadata/view.d.ts +6 -2
  530. package/src/metadata/view.js +3 -1
  531. package/src/metadata/view.js.map +1 -1
  532. package/src/metadata/view.metadata.json +1 -1
  533. package/src/metadata.d.ts +49 -15
  534. package/src/metadata.js +70 -37
  535. package/src/metadata.js.map +1 -1
  536. package/src/metadata.metadata.json +1 -1
  537. package/src/platform_common_providers.d.ts +1 -0
  538. package/src/platform_common_providers.js +3 -3
  539. package/src/platform_common_providers.js.map +1 -1
  540. package/src/platform_common_providers.metadata.json +1 -1
  541. package/src/platform_directives_and_pipes.d.ts +48 -45
  542. package/src/platform_directives_and_pipes.js +50 -47
  543. package/src/platform_directives_and_pipes.js.map +1 -1
  544. package/src/platform_directives_and_pipes.metadata.json +1 -1
  545. package/src/profile/profile.d.ts +5 -1
  546. package/src/profile/profile.js +5 -3
  547. package/src/profile/profile.js.map +1 -1
  548. package/src/profile/profile.metadata.json +1 -1
  549. package/src/profile/wtf_impl.js +1 -1
  550. package/src/profile/wtf_impl.js.map +1 -1
  551. package/src/profile/wtf_impl.metadata.json +1 -0
  552. package/src/profile/wtf_init.js +2 -2
  553. package/src/profile/wtf_init.js.map +1 -1
  554. package/src/reflection/platform_reflection_capabilities.d.ts +4 -3
  555. package/src/reflection/platform_reflection_capabilities.js.map +1 -1
  556. package/src/reflection/reflection.d.ts +1 -1
  557. package/src/reflection/reflection.js +2 -2
  558. package/src/reflection/reflection.js.map +1 -1
  559. package/src/reflection/reflection.metadata.json +1 -1
  560. package/src/reflection/reflection_capabilities.d.ts +4 -5
  561. package/src/reflection/reflection_capabilities.js +24 -10
  562. package/src/reflection/reflection_capabilities.js.map +1 -1
  563. package/src/reflection/reflector.d.ts +8 -20
  564. package/src/reflection/reflector.js +13 -3
  565. package/src/reflection/reflector.js.map +1 -1
  566. package/src/reflection/reflector_reader.js +3 -3
  567. package/src/reflection/reflector_reader.js.map +1 -1
  568. package/src/reflection/types.js.map +1 -1
  569. package/src/render/api.d.ts +17 -6
  570. package/src/render/api.js +8 -1
  571. package/src/render/api.js.map +1 -1
  572. package/src/render.d.ts +1 -1
  573. package/src/render.js +2 -2
  574. package/src/render.js.map +1 -1
  575. package/src/security.js +6 -6
  576. package/src/security.js.map +1 -1
  577. package/src/testability/testability.d.ts +3 -19
  578. package/src/testability/testability.js +10 -5
  579. package/src/testability/testability.js.map +1 -1
  580. package/src/testability/testability.metadata.json +1 -1
  581. package/src/util/decorators.d.ts +2 -1
  582. package/src/util/decorators.js +10 -9
  583. package/src/util/decorators.js.map +1 -1
  584. package/src/util.js.map +1 -1
  585. package/src/zone/ng_zone.d.ts +6 -17
  586. package/src/zone/ng_zone.js +11 -6
  587. package/src/zone/ng_zone.js.map +1 -1
  588. package/src/zone/ng_zone_impl.d.ts +1 -4
  589. package/src/zone/ng_zone_impl.js +3 -2
  590. package/src/zone/ng_zone_impl.js.map +1 -1
  591. package/src/zone.js.map +1 -1
  592. package/testing/async.js +20 -22
  593. package/testing/async.js.map +1 -1
  594. package/testing/async.metadata.json +1 -0
  595. package/testing/async_test_completer.js.map +1 -1
  596. package/testing/fake_async.d.ts +4 -1
  597. package/testing/fake_async.js +10 -2
  598. package/testing/fake_async.js.map +1 -1
  599. package/testing/lang_utils.js +1 -1
  600. package/testing/lang_utils.js.map +1 -1
  601. package/testing/lang_utils.metadata.json +1 -0
  602. package/testing/logger.js +5 -3
  603. package/testing/logger.js.map +1 -1
  604. package/testing/logger.metadata.json +1 -1
  605. package/testing/mock_application_ref.d.ts +1 -1
  606. package/testing/mock_application_ref.js +1 -0
  607. package/testing/mock_application_ref.js.map +1 -1
  608. package/testing/mock_application_ref.metadata.json +1 -1
  609. package/testing/ng_zone_mock.d.ts +0 -1
  610. package/testing/ng_zone_mock.js +2 -1
  611. package/testing/ng_zone_mock.js.map +1 -1
  612. package/testing/ng_zone_mock.metadata.json +1 -1
  613. package/testing/regexp.js +1 -1
  614. package/testing/regexp.js.map +1 -1
  615. package/testing/regexp.metadata.json +1 -0
  616. package/testing/test_injector.d.ts +6 -12
  617. package/testing/test_injector.js +3 -9
  618. package/testing/test_injector.js.map +1 -1
  619. package/testing/test_injector.metadata.json +1 -0
  620. package/testing/testing.d.ts +2 -2
  621. package/testing/testing.js +5 -5
  622. package/testing/testing.js.map +1 -1
  623. package/testing/testing.metadata.json +1 -1
  624. package/testing.js.map +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"lifecycle_hooks.js","sourceRoot":"","sources":["../../../../../../modules/@angular/core/src/metadata/lifecycle_hooks.ts"],"names":[],"mappings":"AAMA,WAAY,cASX;AATD,WAAY,cAAc;IACxB,uDAAM,CAAA;IACN,6DAAS,CAAA;IACT,yDAAO,CAAA;IACP,6DAAS,CAAA;IACT,2EAAgB,CAAA;IAChB,iFAAmB,CAAA;IACnB,qEAAa,CAAA;IACb,2EAAgB,CAAA;AAClB,CAAC,EATW,cAAc,KAAd,cAAc,QASzB;AAED;;GAEG;AACH,OAAO,IAAI,sBAAsB,GAAG;IAClC,cAAc,CAAC,MAAM;IACrB,cAAc,CAAC,SAAS;IACxB,cAAc,CAAC,OAAO;IACtB,cAAc,CAAC,SAAS;IACxB,cAAc,CAAC,gBAAgB;IAC/B,cAAc,CAAC,mBAAmB;IAClC,cAAc,CAAC,aAAa;IAC5B,cAAc,CAAC,gBAAgB;CAChC,CAAC","sourcesContent":["interface DecoratorInvocation {\n type: Function;\n args?: any[];\n }\n import {SimpleChange} from '../change_detection/change_detection_util';\n\nexport enum LifecycleHooks {\n OnInit,\n OnDestroy,\n DoCheck,\n OnChanges,\n AfterContentInit,\n AfterContentChecked,\n AfterViewInit,\n AfterViewChecked\n}\n\n/**\n * @internal\n */\nexport var LIFECYCLE_HOOKS_VALUES = [\n LifecycleHooks.OnInit,\n LifecycleHooks.OnDestroy,\n LifecycleHooks.DoCheck,\n LifecycleHooks.OnChanges,\n LifecycleHooks.AfterContentInit,\n LifecycleHooks.AfterContentChecked,\n LifecycleHooks.AfterViewInit,\n LifecycleHooks.AfterViewChecked\n];\n\n/**\n * Lifecycle hooks are guaranteed to be called in the following order:\n * - `OnChanges` (if any bindings have changed),\n * - `OnInit` (after the first check only),\n * - `DoCheck`,\n * - `AfterContentInit`,\n * - `AfterContentChecked`,\n * - `AfterViewInit`,\n * - `AfterViewChecked`,\n * - `OnDestroy` (at the very end before destruction)\n */\n\n/**\n * Implement this interface to get notified when any data-bound property of your directive changes.\n *\n * `ngOnChanges` is called right after the data-bound properties have been checked and before view\n * and content children are checked if at least one of them has changed.\n *\n * The `changes` parameter contains an entry for each of the changed data-bound property. The key is\n * the property name and the value is an instance of {@link SimpleChange}.\n *\n * ### Example ([live example](http://plnkr.co/edit/AHrB6opLqHDBPkt4KpdT?p=preview)):\n *\n * ```typescript\n * @Component({\n * selector: 'my-cmp',\n * template: `<p>myProp = {{myProp}}</p>`\n * })\n * class MyComponent implements OnChanges {\n * @Input() myProp: any;\n *\n * ngOnChanges(changes: {[propName: string]: SimpleChange}) {\n * console.log('ngOnChanges - myProp = ' + changes['myProp'].currentValue);\n * }\n * }\n *\n * @Component({\n * selector: 'app',\n * template: `\n * <button (click)=\"value = value + 1\">Change MyComponent</button>\n * <my-cmp [my-prop]=\"value\"></my-cmp>`,\n * directives: [MyComponent]\n * })\n * export class App {\n * value = 0;\n * }\n *\n * bootstrap(App).catch(err => console.error(err));\n * ```\n */\nexport interface OnChanges { ngOnChanges(changes: {[key: string]: SimpleChange}); }\n\n/**\n * Implement this interface to execute custom initialization logic after your directive's\n * data-bound properties have been initialized.\n *\n * `ngOnInit` is called right after the directive's data-bound properties have been checked for the\n * first time, and before any of its children have been checked. It is invoked only once when the\n * directive is instantiated.\n *\n * ### Example ([live example](http://plnkr.co/edit/1MBypRryXd64v4pV03Yn?p=preview))\n *\n * ```typescript\n * @Component({\n * selector: 'my-cmp',\n * template: `<p>my-component</p>`\n * })\n * class MyComponent implements OnInit, OnDestroy {\n * ngOnInit() {\n * console.log('ngOnInit');\n * }\n *\n * ngOnDestroy() {\n * console.log('ngOnDestroy');\n * }\n * }\n *\n * @Component({\n * selector: 'app',\n * template: `\n * <button (click)=\"hasChild = !hasChild\">\n * {{hasChild ? 'Destroy' : 'Create'}} MyComponent\n * </button>\n * <my-cmp *ngIf=\"hasChild\"></my-cmp>`,\n * directives: [MyComponent, NgIf]\n * })\n * export class App {\n * hasChild = true;\n * }\n *\n * bootstrap(App).catch(err => console.error(err));\n * ```\n */\nexport interface OnInit { ngOnInit(); }\n\n/**\n * Implement this interface to override the default change detection algorithm for your directive.\n *\n * `ngDoCheck` gets called to check the changes in the directives instead of the default algorithm.\n *\n * The default change detection algorithm looks for differences by comparing bound-property values\n * by reference across change detection runs. When `DoCheck` is implemented, the default algorithm\n * is disabled and `ngDoCheck` is responsible for checking for changes.\n *\n * Implementing this interface allows improving performance by using insights about the component,\n * its implementation and data types of its properties.\n *\n * Note that a directive should not implement both `DoCheck` and {@link OnChanges} at the same time.\n * `ngOnChanges` would not be called when a directive implements `DoCheck`. Reaction to the changes\n * have to be handled from within the `ngDoCheck` callback.\n *\n * Use {@link KeyValueDiffers} and {@link IterableDiffers} to add your custom check mechanisms.\n *\n * ### Example ([live demo](http://plnkr.co/edit/QpnIlF0CR2i5bcYbHEUJ?p=preview))\n *\n * In the following example `ngDoCheck` uses an {@link IterableDiffers} to detect the updates to the\n * array `list`:\n *\n * ```typescript\n * @Component({\n * selector: 'custom-check',\n * template: `\n * <p>Changes:</p>\n * <ul>\n * <li *ngFor=\"let line of logs\">{{line}}</li>\n * </ul>`,\n * directives: [NgFor]\n * })\n * class CustomCheckComponent implements DoCheck {\n * @Input() list: any[];\n * differ: any;\n * logs = [];\n *\n * constructor(differs: IterableDiffers) {\n * this.differ = differs.find([]).create(null);\n * }\n *\n * ngDoCheck() {\n * var changes = this.differ.diff(this.list);\n *\n * if (changes) {\n * changes.forEachAddedItem(r => this.logs.push('added ' + r.item));\n * changes.forEachRemovedItem(r => this.logs.push('removed ' + r.item))\n * }\n * }\n * }\n *\n * @Component({\n * selector: 'app',\n * template: `\n * <button (click)=\"list.push(list.length)\">Push</button>\n * <button (click)=\"list.pop()\">Pop</button>\n * <custom-check [list]=\"list\"></custom-check>`,\n * directives: [CustomCheckComponent]\n * })\n * export class App {\n * list = [];\n * }\n * ```\n */\nexport interface DoCheck { ngDoCheck(); }\n\n/**\n * Implement this interface to get notified when your directive is destroyed.\n *\n * `ngOnDestroy` callback is typically used for any custom cleanup that needs to occur when the\n * instance is destroyed\n *\n * ### Example ([live example](http://plnkr.co/edit/1MBypRryXd64v4pV03Yn?p=preview))\n *\n * ```typesript\n * @Component({\n * selector: 'my-cmp',\n * template: `<p>my-component</p>`\n * })\n * class MyComponent implements OnInit, OnDestroy {\n * ngOnInit() {\n * console.log('ngOnInit');\n * }\n *\n * ngOnDestroy() {\n * console.log('ngOnDestroy');\n * }\n * }\n *\n * @Component({\n * selector: 'app',\n * template: `\n * <button (click)=\"hasChild = !hasChild\">\n * {{hasChild ? 'Destroy' : 'Create'}} MyComponent\n * </button>\n * <my-cmp *ngIf=\"hasChild\"></my-cmp>`,\n * directives: [MyComponent, NgIf]\n * })\n * export class App {\n * hasChild = true;\n * }\n *\n * bootstrap(App).catch(err => console.error(err));\n * ```\n *\n *\n * To create a stateful Pipe, you should implement this interface and set the `pure`\n * parameter to `false` in the {@link PipeMetadata}.\n *\n * A stateful pipe may produce different output, given the same input. It is\n * likely that a stateful pipe may contain state that should be cleaned up when\n * a binding is destroyed. For example, a subscription to a stream of data may need to\n * be disposed, or an interval may need to be cleared.\n *\n * ### Example ([live demo](http://plnkr.co/edit/i8pm5brO4sPaLxBx56MR?p=preview))\n *\n * In this example, a pipe is created to countdown its input value, updating it every\n * 50ms. Because it maintains an internal interval, it automatically clears\n * the interval when the binding is destroyed or the countdown completes.\n *\n * ```\n * import {OnDestroy, Pipe, PipeTransform} from '@angular/core'\n * @Pipe({name: 'countdown', pure: false})\n * class CountDown implements PipeTransform, OnDestroy {\n * remainingTime:Number;\n * interval:SetInterval;\n * ngOnDestroy() {\n * if (this.interval) {\n * clearInterval(this.interval);\n * }\n * }\n * transform(value: any, args: any[] = []) {\n * if (!parseInt(value, 10)) return null;\n * if (typeof this.remainingTime !== 'number') {\n * this.remainingTime = parseInt(value, 10);\n * }\n * if (!this.interval) {\n * this.interval = setInterval(() => {\n * this.remainingTime-=50;\n * if (this.remainingTime <= 0) {\n * this.remainingTime = 0;\n * clearInterval(this.interval);\n * delete this.interval;\n * }\n * }, 50);\n * }\n * return this.remainingTime;\n * }\n * }\n * ```\n *\n * Invoking `{{ 10000 | countdown }}` would cause the value to be decremented by 50,\n * every 50ms, until it reaches 0.\n *\n */\nexport interface OnDestroy { ngOnDestroy(); }\n\n/**\n * Implement this interface to get notified when your directive's content has been fully\n * initialized.\n *\n * ### Example ([live demo](http://plnkr.co/edit/plamXUpsLQbIXpViZhUO?p=preview))\n *\n * ```typescript\n * @Component({\n * selector: 'child-cmp',\n * template: `{{where}} child`\n * })\n * class ChildComponent {\n * @Input() where: string;\n * }\n *\n * @Component({\n * selector: 'parent-cmp',\n * template: `<ng-content></ng-content>`\n * })\n * class ParentComponent implements AfterContentInit {\n * @ContentChild(ChildComponent) contentChild: ChildComponent;\n *\n * constructor() {\n * // contentChild is not initialized yet\n * console.log(this.getMessage(this.contentChild));\n * }\n *\n * ngAfterContentInit() {\n * // contentChild is updated after the content has been checked\n * console.log('AfterContentInit: ' + this.getMessage(this.contentChild));\n * }\n *\n * private getMessage(cmp: ChildComponent): string {\n * return cmp ? cmp.where + ' child' : 'no child';\n * }\n * }\n *\n * @Component({\n * selector: 'app',\n * template: `\n * <parent-cmp>\n * <child-cmp where=\"content\"></child-cmp>\n * </parent-cmp>`,\n * directives: [ParentComponent, ChildComponent]\n * })\n * export class App {\n * }\n *\n * bootstrap(App).catch(err => console.error(err));\n * ```\n */\nexport interface AfterContentInit { ngAfterContentInit(); }\n\n/**\n * Implement this interface to get notified after every check of your directive's content.\n *\n * ### Example ([live demo](http://plnkr.co/edit/tGdrytNEKQnecIPkD7NU?p=preview))\n *\n * ```typescript\n * @Component({selector: 'child-cmp', template: `{{where}} child`})\n * class ChildComponent {\n * @Input() where: string;\n * }\n *\n * @Component({selector: 'parent-cmp', template: `<ng-content></ng-content>`})\n * class ParentComponent implements AfterContentChecked {\n * @ContentChild(ChildComponent) contentChild: ChildComponent;\n *\n * constructor() {\n * // contentChild is not initialized yet\n * console.log(this.getMessage(this.contentChild));\n * }\n *\n * ngAfterContentChecked() {\n * // contentChild is updated after the content has been checked\n * console.log('AfterContentChecked: ' + this.getMessage(this.contentChild));\n * }\n *\n * private getMessage(cmp: ChildComponent): string {\n * return cmp ? cmp.where + ' child' : 'no child';\n * }\n * }\n *\n * @Component({\n * selector: 'app',\n * template: `\n * <parent-cmp>\n * <button (click)=\"hasContent = !hasContent\">Toggle content child</button>\n * <child-cmp *ngIf=\"hasContent\" where=\"content\"></child-cmp>\n * </parent-cmp>`,\n * directives: [NgIf, ParentComponent, ChildComponent]\n * })\n * export class App {\n * hasContent = true;\n * }\n *\n * bootstrap(App).catch(err => console.error(err));\n * ```\n */\nexport interface AfterContentChecked { ngAfterContentChecked(); }\n\n/**\n * Implement this interface to get notified when your component's view has been fully initialized.\n *\n * ### Example ([live demo](http://plnkr.co/edit/LhTKVMEM0fkJgyp4CI1W?p=preview))\n *\n * ```typescript\n * @Component({selector: 'child-cmp', template: `{{where}} child`})\n * class ChildComponent {\n * @Input() where: string;\n * }\n *\n * @Component({\n * selector: 'parent-cmp',\n * template: `<child-cmp where=\"view\"></child-cmp>`,\n * directives: [ChildComponent]\n * })\n * class ParentComponent implements AfterViewInit {\n * @ViewChild(ChildComponent) viewChild: ChildComponent;\n *\n * constructor() {\n * // viewChild is not initialized yet\n * console.log(this.getMessage(this.viewChild));\n * }\n *\n * ngAfterViewInit() {\n * // viewChild is updated after the view has been initialized\n * console.log('ngAfterViewInit: ' + this.getMessage(this.viewChild));\n * }\n *\n * private getMessage(cmp: ChildComponent): string {\n * return cmp ? cmp.where + ' child' : 'no child';\n * }\n * }\n *\n * @Component({\n * selector: 'app',\n * template: `<parent-cmp></parent-cmp>`,\n * directives: [ParentComponent]\n * })\n * export class App {\n * }\n *\n * bootstrap(App).catch(err => console.error(err));\n * ```\n */\nexport interface AfterViewInit { ngAfterViewInit(); }\n\n/**\n * Implement this interface to get notified after every check of your component's view.\n *\n * ### Example ([live demo](http://plnkr.co/edit/0qDGHcPQkc25CXhTNzKU?p=preview))\n *\n * ```typescript\n * @Component({selector: 'child-cmp', template: `{{where}} child`})\n * class ChildComponent {\n * @Input() where: string;\n * }\n *\n * @Component({\n * selector: 'parent-cmp',\n * template: `\n * <button (click)=\"showView = !showView\">Toggle view child</button>\n * <child-cmp *ngIf=\"showView\" where=\"view\"></child-cmp>`,\n * directives: [NgIf, ChildComponent]\n * })\n * class ParentComponent implements AfterViewChecked {\n * @ViewChild(ChildComponent) viewChild: ChildComponent;\n * showView = true;\n *\n * constructor() {\n * // viewChild is not initialized yet\n * console.log(this.getMessage(this.viewChild));\n * }\n *\n * ngAfterViewChecked() {\n * // viewChild is updated after the view has been checked\n * console.log('AfterViewChecked: ' + this.getMessage(this.viewChild));\n * }\n *\n * private getMessage(cmp: ChildComponent): string {\n * return cmp ? cmp.where + ' child' : 'no child';\n * }\n * }\n *\n * @Component({\n * selector: 'app',\n * template: `<parent-cmp></parent-cmp>`,\n * directives: [ParentComponent]\n * })\n * export class App {\n * }\n *\n * bootstrap(App).catch(err => console.error(err));\n * ```\n */\nexport interface AfterViewChecked { ngAfterViewChecked(); }\n"]}
1
+ {"version":3,"file":"lifecycle_hooks.js","sourceRoot":"","sources":["../../../../../../modules/@angular/core/src/metadata/lifecycle_hooks.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,WAAY,cASX;AATD,WAAY,cAAc;IACxB,uDAAM,CAAA;IACN,6DAAS,CAAA;IACT,yDAAO,CAAA;IACP,6DAAS,CAAA;IACT,2EAAgB,CAAA;IAChB,iFAAmB,CAAA;IACnB,qEAAa,CAAA;IACb,2EAAgB,CAAA;AAClB,CAAC,EATW,cAAc,KAAd,cAAc,QASzB;AASD,OAAO,IAAI,sBAAsB,GAAG;IAClC,cAAc,CAAC,MAAM,EAAE,cAAc,CAAC,SAAS,EAAE,cAAc,CAAC,OAAO,EAAE,cAAc,CAAC,SAAS;IACjG,cAAc,CAAC,gBAAgB,EAAE,cAAc,CAAC,mBAAmB,EAAE,cAAc,CAAC,aAAa;IACjG,cAAc,CAAC,gBAAgB;CAChC,CAAC;AAEF;;;;;;;;;;GAUG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH;AAEA,CAAC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AACH;AAA2E,CAAC;AAE5E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkEG;AACH;AAA6E,CAAC;AAE9E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyFG;AACH;AAAiF,CAAC;AAElF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmDG;AACH;AAA+F,CAAC;AAEhG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AACH;AAEA,CAAC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AACH;AAAyF,CAAC;AAE1F;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgDG;AACH;AAA+F,CAAC;AAAA","sourcesContent":["import {SimpleChange} from '../change_detection/change_detection_util';\n\n/**\n * @stable\n */\nexport enum LifecycleHooks {\n OnInit,\n OnDestroy,\n DoCheck,\n OnChanges,\n AfterContentInit,\n AfterContentChecked,\n AfterViewInit,\n AfterViewChecked\n}\n\n/**\n * A `changes` object whose keys are property names and\n * values are instances of {@link SimpleChange}. See {@link OnChanges}\n * @stable\n */\nexport interface SimpleChanges { [propName: string]: SimpleChange; }\n\nexport var LIFECYCLE_HOOKS_VALUES = [\n LifecycleHooks.OnInit, LifecycleHooks.OnDestroy, LifecycleHooks.DoCheck, LifecycleHooks.OnChanges,\n LifecycleHooks.AfterContentInit, LifecycleHooks.AfterContentChecked, LifecycleHooks.AfterViewInit,\n LifecycleHooks.AfterViewChecked\n];\n\n/**\n * Lifecycle hooks are guaranteed to be called in the following order:\n * - `OnChanges` (if any bindings have changed),\n * - `OnInit` (after the first check only),\n * - `DoCheck`,\n * - `AfterContentInit`,\n * - `AfterContentChecked`,\n * - `AfterViewInit`,\n * - `AfterViewChecked`,\n * - `OnDestroy` (at the very end before destruction)\n */\n\n/**\n * Implement this interface to get notified when any data-bound property of your directive changes.\n *\n * `ngOnChanges` is called right after the data-bound properties have been checked and before view\n * and content children are checked if at least one of them has changed.\n *\n * The `changes` parameter contains an entry for each of the changed data-bound property. The key is\n * the property name and the value is an instance of {@link SimpleChange}.\n *\n * ### Example ([live example](http://plnkr.co/edit/AHrB6opLqHDBPkt4KpdT?p=preview)):\n *\n * ```typescript\n * @Component({\n * selector: 'my-cmp',\n * template: `<p>myProp = {{myProp}}</p>`\n * })\n * class MyComponent implements OnChanges {\n * @Input() myProp: any;\n *\n * ngOnChanges(changes: SimpleChanges) {\n * console.log('ngOnChanges - myProp = ' + changes['myProp'].currentValue);\n * }\n * }\n *\n * @Component({\n * selector: 'app',\n * template: `\n * <button (click)=\"value = value + 1\">Change MyComponent</button>\n * <my-cmp [my-prop]=\"value\"></my-cmp>`,\n * directives: [MyComponent]\n * })\n * export class App {\n * value = 0;\n * }\n *\n * bootstrap(App).catch(err => console.error(err));\n * ```\n * @stable\n */\nexport abstract class OnChanges {\n abstract ngOnChanges(changes: SimpleChanges): any /** TODO #9100 */;\n}\n\n/**\n * Implement this interface to execute custom initialization logic after your directive's\n * data-bound properties have been initialized.\n *\n * `ngOnInit` is called right after the directive's data-bound properties have been checked for the\n * first time, and before any of its children have been checked. It is invoked only once when the\n * directive is instantiated.\n *\n * ### Example ([live example](http://plnkr.co/edit/1MBypRryXd64v4pV03Yn?p=preview))\n *\n * ```typescript\n * @Component({\n * selector: 'my-cmp',\n * template: `<p>my-component</p>`\n * })\n * class MyComponent implements OnInit, OnDestroy {\n * ngOnInit() {\n * console.log('ngOnInit');\n * }\n *\n * ngOnDestroy() {\n * console.log('ngOnDestroy');\n * }\n * }\n *\n * @Component({\n * selector: 'app',\n * template: `\n * <button (click)=\"hasChild = !hasChild\">\n * {{hasChild ? 'Destroy' : 'Create'}} MyComponent\n * </button>\n * <my-cmp *ngIf=\"hasChild\"></my-cmp>`,\n * directives: [MyComponent, NgIf]\n * })\n * export class App {\n * hasChild = true;\n * }\n *\n * bootstrap(App).catch(err => console.error(err));\n * ```\n * @stable\n */\nexport abstract class OnInit { abstract ngOnInit(): any /** TODO #9100 */; }\n\n/**\n * Implement this interface to supplement the default change detection algorithm in your directive.\n *\n * `ngDoCheck` gets called to check the changes in the directives in addition to the default\n * algorithm.\n *\n * The default change detection algorithm looks for differences by comparing bound-property values\n * by reference across change detection runs.\n *\n * Note that a directive typically should not use both `DoCheck` and {@link OnChanges} to respond to\n * changes on the same input. `ngOnChanges` will continue to be called when the default change\n * detector\n * detects changes, so it is usually unnecessary to respond to changes on the same input in both\n * hooks.\n * Reaction to the changes have to be handled from within the `ngDoCheck` callback.\n *\n * You can use {@link KeyValueDiffers} and {@link IterableDiffers} to help add your custom check\n * mechanisms.\n *\n * ### Example ([live demo](http://plnkr.co/edit/QpnIlF0CR2i5bcYbHEUJ?p=preview))\n *\n * In the following example `ngDoCheck` uses an {@link IterableDiffers} to detect the updates to the\n * array `list`:\n *\n * ```typescript\n * @Component({\n * selector: 'custom-check',\n * template: `\n * <p>Changes:</p>\n * <ul>\n * <li *ngFor=\"let line of logs\">{{line}}</li>\n * </ul>`,\n * directives: [NgFor]\n * })\n * class CustomCheckComponent implements DoCheck {\n * @Input() list: any[];\n * differ: any;\n * logs = [];\n *\n * constructor(differs: IterableDiffers) {\n * this.differ = differs.find([]).create(null);\n * }\n *\n * ngDoCheck() {\n * var changes = this.differ.diff(this.list);\n *\n * if (changes) {\n * changes.forEachAddedItem(r => this.logs.push('added ' + r.item));\n * changes.forEachRemovedItem(r => this.logs.push('removed ' + r.item))\n * }\n * }\n * }\n *\n * @Component({\n * selector: 'app',\n * template: `\n * <button (click)=\"list.push(list.length)\">Push</button>\n * <button (click)=\"list.pop()\">Pop</button>\n * <custom-check [list]=\"list\"></custom-check>`,\n * directives: [CustomCheckComponent]\n * })\n * export class App {\n * list = [];\n * }\n * ```\n * @stable\n */\nexport abstract class DoCheck { abstract ngDoCheck(): any /** TODO #9100 */; }\n\n/**\n * Implement this interface to get notified when your directive is destroyed.\n *\n * `ngOnDestroy` callback is typically used for any custom cleanup that needs to occur when the\n * instance is destroyed\n *\n * ### Example ([live example](http://plnkr.co/edit/1MBypRryXd64v4pV03Yn?p=preview))\n *\n * ```typesript\n * @Component({\n * selector: 'my-cmp',\n * template: `<p>my-component</p>`\n * })\n * class MyComponent implements OnInit, OnDestroy {\n * ngOnInit() {\n * console.log('ngOnInit');\n * }\n *\n * ngOnDestroy() {\n * console.log('ngOnDestroy');\n * }\n * }\n *\n * @Component({\n * selector: 'app',\n * template: `\n * <button (click)=\"hasChild = !hasChild\">\n * {{hasChild ? 'Destroy' : 'Create'}} MyComponent\n * </button>\n * <my-cmp *ngIf=\"hasChild\"></my-cmp>`,\n * directives: [MyComponent, NgIf]\n * })\n * export class App {\n * hasChild = true;\n * }\n *\n * bootstrap(App).catch(err => console.error(err));\n * ```\n *\n *\n * To create a stateful Pipe, you should implement this interface and set the `pure`\n * parameter to `false` in the {@link PipeMetadata}.\n *\n * A stateful pipe may produce different output, given the same input. It is\n * likely that a stateful pipe may contain state that should be cleaned up when\n * a binding is destroyed. For example, a subscription to a stream of data may need to\n * be disposed, or an interval may need to be cleared.\n *\n * ### Example ([live demo](http://plnkr.co/edit/i8pm5brO4sPaLxBx56MR?p=preview))\n *\n * In this example, a pipe is created to countdown its input value, updating it every\n * 50ms. Because it maintains an internal interval, it automatically clears\n * the interval when the binding is destroyed or the countdown completes.\n *\n * ```\n * import {OnDestroy, Pipe, PipeTransform} from '@angular/core'\n * @Pipe({name: 'countdown', pure: false})\n * class CountDown implements PipeTransform, OnDestroy {\n * remainingTime:Number;\n * interval:SetInterval;\n * ngOnDestroy() {\n * if (this.interval) {\n * clearInterval(this.interval);\n * }\n * }\n * transform(value: any, args: any[] = []) {\n * if (!parseInt(value, 10)) return null;\n * if (typeof this.remainingTime !== 'number') {\n * this.remainingTime = parseInt(value, 10);\n * }\n * if (!this.interval) {\n * this.interval = setInterval(() => {\n * this.remainingTime-=50;\n * if (this.remainingTime <= 0) {\n * this.remainingTime = 0;\n * clearInterval(this.interval);\n * delete this.interval;\n * }\n * }, 50);\n * }\n * return this.remainingTime;\n * }\n * }\n * ```\n *\n * Invoking `{{ 10000 | countdown }}` would cause the value to be decremented by 50,\n * every 50ms, until it reaches 0.\n *\n * @stable\n */\nexport abstract class OnDestroy { abstract ngOnDestroy(): any /** TODO #9100 */; }\n\n/**\n * Implement this interface to get notified when your directive's content has been fully\n * initialized.\n *\n * ### Example ([live demo](http://plnkr.co/edit/plamXUpsLQbIXpViZhUO?p=preview))\n *\n * ```typescript\n * @Component({\n * selector: 'child-cmp',\n * template: `{{where}} child`\n * })\n * class ChildComponent {\n * @Input() where: string;\n * }\n *\n * @Component({\n * selector: 'parent-cmp',\n * template: `<ng-content></ng-content>`\n * })\n * class ParentComponent implements AfterContentInit {\n * @ContentChild(ChildComponent) contentChild: ChildComponent;\n *\n * constructor() {\n * // contentChild is not initialized yet\n * console.log(this.getMessage(this.contentChild));\n * }\n *\n * ngAfterContentInit() {\n * // contentChild is updated after the content has been checked\n * console.log('AfterContentInit: ' + this.getMessage(this.contentChild));\n * }\n *\n * private getMessage(cmp: ChildComponent): string {\n * return cmp ? cmp.where + ' child' : 'no child';\n * }\n * }\n *\n * @Component({\n * selector: 'app',\n * template: `\n * <parent-cmp>\n * <child-cmp where=\"content\"></child-cmp>\n * </parent-cmp>`,\n * directives: [ParentComponent, ChildComponent]\n * })\n * export class App {\n * }\n *\n * bootstrap(App).catch(err => console.error(err));\n * ```\n * @stable\n */\nexport abstract class AfterContentInit { abstract ngAfterContentInit(): any /** TODO #9100 */; }\n\n/**\n * Implement this interface to get notified after every check of your directive's content.\n *\n * ### Example ([live demo](http://plnkr.co/edit/tGdrytNEKQnecIPkD7NU?p=preview))\n *\n * ```typescript\n * @Component({selector: 'child-cmp', template: `{{where}} child`})\n * class ChildComponent {\n * @Input() where: string;\n * }\n *\n * @Component({selector: 'parent-cmp', template: `<ng-content></ng-content>`})\n * class ParentComponent implements AfterContentChecked {\n * @ContentChild(ChildComponent) contentChild: ChildComponent;\n *\n * constructor() {\n * // contentChild is not initialized yet\n * console.log(this.getMessage(this.contentChild));\n * }\n *\n * ngAfterContentChecked() {\n * // contentChild is updated after the content has been checked\n * console.log('AfterContentChecked: ' + this.getMessage(this.contentChild));\n * }\n *\n * private getMessage(cmp: ChildComponent): string {\n * return cmp ? cmp.where + ' child' : 'no child';\n * }\n * }\n *\n * @Component({\n * selector: 'app',\n * template: `\n * <parent-cmp>\n * <button (click)=\"hasContent = !hasContent\">Toggle content child</button>\n * <child-cmp *ngIf=\"hasContent\" where=\"content\"></child-cmp>\n * </parent-cmp>`,\n * directives: [NgIf, ParentComponent, ChildComponent]\n * })\n * export class App {\n * hasContent = true;\n * }\n *\n * bootstrap(App).catch(err => console.error(err));\n * ```\n * @stable\n */\nexport abstract class AfterContentChecked {\n abstract ngAfterContentChecked(): any /** TODO #9100 */;\n}\n\n/**\n * Implement this interface to get notified when your component's view has been fully initialized.\n *\n * ### Example ([live demo](http://plnkr.co/edit/LhTKVMEM0fkJgyp4CI1W?p=preview))\n *\n * ```typescript\n * @Component({selector: 'child-cmp', template: `{{where}} child`})\n * class ChildComponent {\n * @Input() where: string;\n * }\n *\n * @Component({\n * selector: 'parent-cmp',\n * template: `<child-cmp where=\"view\"></child-cmp>`,\n * directives: [ChildComponent]\n * })\n * class ParentComponent implements AfterViewInit {\n * @ViewChild(ChildComponent) viewChild: ChildComponent;\n *\n * constructor() {\n * // viewChild is not initialized yet\n * console.log(this.getMessage(this.viewChild));\n * }\n *\n * ngAfterViewInit() {\n * // viewChild is updated after the view has been initialized\n * console.log('ngAfterViewInit: ' + this.getMessage(this.viewChild));\n * }\n *\n * private getMessage(cmp: ChildComponent): string {\n * return cmp ? cmp.where + ' child' : 'no child';\n * }\n * }\n *\n * @Component({\n * selector: 'app',\n * template: `<parent-cmp></parent-cmp>`,\n * directives: [ParentComponent]\n * })\n * export class App {\n * }\n *\n * bootstrap(App).catch(err => console.error(err));\n * ```\n * @stable\n */\nexport abstract class AfterViewInit { abstract ngAfterViewInit(): any /** TODO #9100 */; }\n\n/**\n * Implement this interface to get notified after every check of your component's view.\n *\n * ### Example ([live demo](http://plnkr.co/edit/0qDGHcPQkc25CXhTNzKU?p=preview))\n *\n * ```typescript\n * @Component({selector: 'child-cmp', template: `{{where}} child`})\n * class ChildComponent {\n * @Input() where: string;\n * }\n *\n * @Component({\n * selector: 'parent-cmp',\n * template: `\n * <button (click)=\"showView = !showView\">Toggle view child</button>\n * <child-cmp *ngIf=\"showView\" where=\"view\"></child-cmp>`,\n * directives: [NgIf, ChildComponent]\n * })\n * class ParentComponent implements AfterViewChecked {\n * @ViewChild(ChildComponent) viewChild: ChildComponent;\n * showView = true;\n *\n * constructor() {\n * // viewChild is not initialized yet\n * console.log(this.getMessage(this.viewChild));\n * }\n *\n * ngAfterViewChecked() {\n * // viewChild is updated after the view has been checked\n * console.log('AfterViewChecked: ' + this.getMessage(this.viewChild));\n * }\n *\n * private getMessage(cmp: ChildComponent): string {\n * return cmp ? cmp.where + ' child' : 'no child';\n * }\n * }\n *\n * @Component({\n * selector: 'app',\n * template: `<parent-cmp></parent-cmp>`,\n * directives: [ParentComponent]\n * })\n * export class App {\n * }\n *\n * bootstrap(App).catch(err => console.error(err));\n * ```\n * @stable\n */\nexport abstract class AfterViewChecked { abstract ngAfterViewChecked(): any /** TODO #9100 */; }\n\ninterface DecoratorInvocation {\n type: Function;\n args?: any[];\n}\n"]}
@@ -1 +1 @@
1
- {"__symbolic":"module","metadata":{"LIFECYCLE_HOOKS_VALUES":[{"__symbolic":"select","expression":{"__symbolic":"reference","name":"LifecycleHooks"},"member":"OnInit"},{"__symbolic":"select","expression":{"__symbolic":"reference","name":"LifecycleHooks"},"member":"OnDestroy"},{"__symbolic":"select","expression":{"__symbolic":"reference","name":"LifecycleHooks"},"member":"DoCheck"},{"__symbolic":"select","expression":{"__symbolic":"reference","name":"LifecycleHooks"},"member":"OnChanges"},{"__symbolic":"select","expression":{"__symbolic":"reference","name":"LifecycleHooks"},"member":"AfterContentInit"},{"__symbolic":"select","expression":{"__symbolic":"reference","name":"LifecycleHooks"},"member":"AfterContentChecked"},{"__symbolic":"select","expression":{"__symbolic":"reference","name":"LifecycleHooks"},"member":"AfterViewInit"},{"__symbolic":"select","expression":{"__symbolic":"reference","name":"LifecycleHooks"},"member":"AfterViewChecked"}]}}
1
+ {"__symbolic":"module","version":1,"metadata":{"LIFECYCLE_HOOKS_VALUES":[{"__symbolic":"select","expression":{"__symbolic":"reference","name":"LifecycleHooks"},"member":"OnInit"},{"__symbolic":"select","expression":{"__symbolic":"reference","name":"LifecycleHooks"},"member":"OnDestroy"},{"__symbolic":"select","expression":{"__symbolic":"reference","name":"LifecycleHooks"},"member":"DoCheck"},{"__symbolic":"select","expression":{"__symbolic":"reference","name":"LifecycleHooks"},"member":"OnChanges"},{"__symbolic":"select","expression":{"__symbolic":"reference","name":"LifecycleHooks"},"member":"AfterContentInit"},{"__symbolic":"select","expression":{"__symbolic":"reference","name":"LifecycleHooks"},"member":"AfterContentChecked"},{"__symbolic":"select","expression":{"__symbolic":"reference","name":"LifecycleHooks"},"member":"AfterViewInit"},{"__symbolic":"select","expression":{"__symbolic":"reference","name":"LifecycleHooks"},"member":"AfterViewChecked"}]}}
@@ -1,8 +1,10 @@
1
- import { Type } from '../../src/facade/lang';
1
+ import { AnimationEntryMetadata } from '../animation/metadata';
2
+ import { Type } from '../facade/lang';
2
3
  /**
3
4
  * Defines template and style encapsulation options available for Component's {@link View}.
4
5
  *
5
6
  * See {@link ViewMetadata#encapsulation}.
7
+ * @stable
6
8
  */
7
9
  export declare enum ViewEncapsulation {
8
10
  /**
@@ -111,7 +113,8 @@ export declare class ViewMetadata {
111
113
  * otherwise {@link ViewEncapsulation#None `ViewEncapsulation.None`}.
112
114
  */
113
115
  encapsulation: ViewEncapsulation;
114
- constructor({templateUrl, template, directives, pipes, encapsulation, styles, styleUrls}?: {
116
+ animations: AnimationEntryMetadata[];
117
+ constructor({templateUrl, template, directives, pipes, encapsulation, styles, styleUrls, animations}?: {
115
118
  templateUrl?: string;
116
119
  template?: string;
117
120
  directives?: Array<Type | any[]>;
@@ -119,5 +122,6 @@ export declare class ViewMetadata {
119
122
  encapsulation?: ViewEncapsulation;
120
123
  styles?: string[];
121
124
  styleUrls?: string[];
125
+ animations?: AnimationEntryMetadata[];
122
126
  });
123
127
  }
@@ -2,6 +2,7 @@
2
2
  * Defines template and style encapsulation options available for Component's {@link View}.
3
3
  *
4
4
  * See {@link ViewMetadata#encapsulation}.
5
+ * @stable
5
6
  */
6
7
  export var ViewEncapsulation;
7
8
  (function (ViewEncapsulation) {
@@ -58,7 +59,7 @@ export var VIEW_ENCAPSULATION_VALUES = [ViewEncapsulation.Emulated, ViewEncapsul
58
59
  * @ts2dart_const
59
60
  */
60
61
  export class ViewMetadata {
61
- constructor({ templateUrl, template, directives, pipes, encapsulation, styles, styleUrls } = {}) {
62
+ constructor({ templateUrl, template, directives, pipes, encapsulation, styles, styleUrls, animations } = {}) {
62
63
  this.templateUrl = templateUrl;
63
64
  this.template = template;
64
65
  this.styleUrls = styleUrls;
@@ -66,6 +67,7 @@ export class ViewMetadata {
66
67
  this.directives = directives;
67
68
  this.pipes = pipes;
68
69
  this.encapsulation = encapsulation;
70
+ this.animations = animations;
69
71
  }
70
72
  }
71
73
  //# sourceMappingURL=view.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"view.js","sourceRoot":"","sources":["../../../../../../modules/@angular/core/src/metadata/view.ts"],"names":[],"mappings":"AAMA;;;;GAIG;AACH,WAAY,iBAqBX;AArBD,WAAY,iBAAiB;IAC3B;;;;;;;OAOG;IACH,iEAAQ,CAAA;IACR;;;;;OAKG;IACH,6DAAM,CAAA;IACN;;OAEG;IACH,yDAAI,CAAA;AACN,CAAC,EArBW,iBAAiB,KAAjB,iBAAiB,QAqB5B;AAED,OAAO,IAAI,yBAAyB,GAChC,CAAC,iBAAiB,CAAC,QAAQ,EAAE,iBAAiB,CAAC,MAAM,EAAE,iBAAiB,CAAC,IAAI,CAAC,CAAC;AAGnF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH;IA6DE,YAAY,EAAC,WAAW,EAAE,QAAQ,EAAE,UAAU,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,EAAE,SAAS,EAAC,GAQpF,EAAE;QACJ,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;IACrC,CAAC;AACH,CAAC;AAAA","sourcesContent":["interface DecoratorInvocation {\n type: Function;\n args?: any[];\n }\n import {Type} from '../../src/facade/lang';\n\n/**\n * Defines template and style encapsulation options available for Component's {@link View}.\n *\n * See {@link ViewMetadata#encapsulation}.\n */\nexport enum ViewEncapsulation {\n /**\n * Emulate `Native` scoping of styles by adding an attribute containing surrogate id to the Host\n * Element and pre-processing the style rules provided via\n * {@link ViewMetadata#styles} or {@link ViewMetadata#stylesUrls}, and adding the new Host Element\n * attribute to all selectors.\n *\n * This is the default option.\n */\n Emulated,\n /**\n * Use the native encapsulation mechanism of the renderer.\n *\n * For the DOM this means using [Shadow DOM](https://w3c.github.io/webcomponents/spec/shadow/) and\n * creating a ShadowRoot for Component's Host Element.\n */\n Native,\n /**\n * Don't provide any template or style encapsulation.\n */\n None\n}\n\nexport var VIEW_ENCAPSULATION_VALUES =\n [ViewEncapsulation.Emulated, ViewEncapsulation.Native, ViewEncapsulation.None];\n\n\n/**\n * Metadata properties available for configuring Views.\n *\n * Each Angular component requires a single `@Component` and at least one `@View` annotation. The\n * `@View` annotation specifies the HTML template to use, and lists the directives that are active\n * within the template.\n *\n * When a component is instantiated, the template is loaded into the component's shadow root, and\n * the expressions and statements in the template are evaluated against the component.\n *\n * For details on the `@Component` annotation, see {@link ComponentMetadata}.\n *\n * ### Example\n *\n * ```\n * @Component({\n * selector: 'greet',\n * template: 'Hello {{name}}!',\n * directives: [GreetUser, Bold]\n * })\n * class Greet {\n * name: string;\n *\n * constructor() {\n * this.name = 'World';\n * }\n * }\n * ```\n * @ts2dart_const\n */\nexport class ViewMetadata {\n /**\n * Specifies a template URL for an Angular component.\n *\n * NOTE: Only one of `templateUrl` or `template` can be defined per View.\n *\n * <!-- TODO: what's the url relative to? -->\n */\n templateUrl: string;\n\n /**\n * Specifies an inline template for an Angular component.\n *\n * NOTE: Only one of `templateUrl` or `template` can be defined per View.\n */\n template: string;\n\n /**\n * Specifies stylesheet URLs for an Angular component.\n *\n * <!-- TODO: what's the url relative to? -->\n */\n styleUrls: string[];\n\n /**\n * Specifies an inline stylesheet for an Angular component.\n */\n styles: string[];\n\n /**\n * Specifies a list of directives that can be used within a template.\n *\n * Directives must be listed explicitly to provide proper component encapsulation.\n *\n * ### Example\n *\n * ```javascript\n * @Component({\n * selector: 'my-component',\n * directives: [NgFor]\n * template: '\n * <ul>\n * <li *ngFor=\"let item of items\">{{item}}</li>\n * </ul>'\n * })\n * class MyComponent {\n * }\n * ```\n */\n directives: Array<Type | any[]>;\n\n pipes: Array<Type | any[]>;\n\n /**\n * Specify how the template and the styles should be encapsulated.\n * The default is {@link ViewEncapsulation#Emulated `ViewEncapsulation.Emulated`} if the view\n * has styles,\n * otherwise {@link ViewEncapsulation#None `ViewEncapsulation.None`}.\n */\n encapsulation: ViewEncapsulation;\n\n constructor({templateUrl, template, directives, pipes, encapsulation, styles, styleUrls}: {\n templateUrl?: string,\n template?: string,\n directives?: Array<Type | any[]>,\n pipes?: Array<Type | any[]>,\n encapsulation?: ViewEncapsulation,\n styles?: string[],\n styleUrls?: string[],\n } = {}) {\n this.templateUrl = templateUrl;\n this.template = template;\n this.styleUrls = styleUrls;\n this.styles = styles;\n this.directives = directives;\n this.pipes = pipes;\n this.encapsulation = encapsulation;\n }\n}\n"]}
1
+ {"version":3,"file":"view.js","sourceRoot":"","sources":["../../../../../../modules/@angular/core/src/metadata/view.ts"],"names":[],"mappings":"AAIA;;;;;GAKG;AACH,WAAY,iBAqBX;AArBD,WAAY,iBAAiB;IAC3B;;;;;;;OAOG;IACH,iEAAQ,CAAA;IACR;;;;;OAKG;IACH,6DAAM,CAAA;IACN;;OAEG;IACH,yDAAI,CAAA;AACN,CAAC,EArBW,iBAAiB,KAAjB,iBAAiB,QAqB5B;AAED,OAAO,IAAI,yBAAyB,GAChC,CAAC,iBAAiB,CAAC,QAAQ,EAAE,iBAAiB,CAAC,MAAM,EAAE,iBAAiB,CAAC,IAAI,CAAC,CAAC;AAGnF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH;IA+DE,YACI,EAAC,WAAW,EAAE,QAAQ,EAAE,UAAU,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,EAAE,SAAS,EAAE,UAAU,EAAC,GASpF,EAAE;QACR,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;IAC/B,CAAC;AACH,CAAC;AAAA","sourcesContent":["import {AnimationEntryMetadata} from '../animation/metadata';\nimport {Type} from '../facade/lang';\n\n\n/**\n * Defines template and style encapsulation options available for Component's {@link View}.\n *\n * See {@link ViewMetadata#encapsulation}.\n * @stable\n */\nexport enum ViewEncapsulation {\n /**\n * Emulate `Native` scoping of styles by adding an attribute containing surrogate id to the Host\n * Element and pre-processing the style rules provided via\n * {@link ViewMetadata#styles} or {@link ViewMetadata#stylesUrls}, and adding the new Host Element\n * attribute to all selectors.\n *\n * This is the default option.\n */\n Emulated,\n /**\n * Use the native encapsulation mechanism of the renderer.\n *\n * For the DOM this means using [Shadow DOM](https://w3c.github.io/webcomponents/spec/shadow/) and\n * creating a ShadowRoot for Component's Host Element.\n */\n Native,\n /**\n * Don't provide any template or style encapsulation.\n */\n None\n}\n\nexport var VIEW_ENCAPSULATION_VALUES =\n [ViewEncapsulation.Emulated, ViewEncapsulation.Native, ViewEncapsulation.None];\n\n\n/**\n * Metadata properties available for configuring Views.\n *\n * Each Angular component requires a single `@Component` and at least one `@View` annotation. The\n * `@View` annotation specifies the HTML template to use, and lists the directives that are active\n * within the template.\n *\n * When a component is instantiated, the template is loaded into the component's shadow root, and\n * the expressions and statements in the template are evaluated against the component.\n *\n * For details on the `@Component` annotation, see {@link ComponentMetadata}.\n *\n * ### Example\n *\n * ```\n * @Component({\n * selector: 'greet',\n * template: 'Hello {{name}}!',\n * directives: [GreetUser, Bold]\n * })\n * class Greet {\n * name: string;\n *\n * constructor() {\n * this.name = 'World';\n * }\n * }\n * ```\n * @ts2dart_const\n */\nexport class ViewMetadata {\n /**\n * Specifies a template URL for an Angular component.\n *\n * NOTE: Only one of `templateUrl` or `template` can be defined per View.\n *\n * <!-- TODO: what's the url relative to? -->\n */\n templateUrl: string;\n\n /**\n * Specifies an inline template for an Angular component.\n *\n * NOTE: Only one of `templateUrl` or `template` can be defined per View.\n */\n template: string;\n\n /**\n * Specifies stylesheet URLs for an Angular component.\n *\n * <!-- TODO: what's the url relative to? -->\n */\n styleUrls: string[];\n\n /**\n * Specifies an inline stylesheet for an Angular component.\n */\n styles: string[];\n\n /**\n * Specifies a list of directives that can be used within a template.\n *\n * Directives must be listed explicitly to provide proper component encapsulation.\n *\n * ### Example\n *\n * ```javascript\n * @Component({\n * selector: 'my-component',\n * directives: [NgFor]\n * template: '\n * <ul>\n * <li *ngFor=\"let item of items\">{{item}}</li>\n * </ul>'\n * })\n * class MyComponent {\n * }\n * ```\n */\n directives: Array<Type|any[]>;\n\n pipes: Array<Type|any[]>;\n\n /**\n * Specify how the template and the styles should be encapsulated.\n * The default is {@link ViewEncapsulation#Emulated `ViewEncapsulation.Emulated`} if the view\n * has styles,\n * otherwise {@link ViewEncapsulation#None `ViewEncapsulation.None`}.\n */\n encapsulation: ViewEncapsulation;\n\n animations: AnimationEntryMetadata[];\n\n constructor(\n {templateUrl, template, directives, pipes, encapsulation, styles, styleUrls, animations}: {\n templateUrl?: string,\n template?: string,\n directives?: Array<Type|any[]>,\n pipes?: Array<Type|any[]>,\n encapsulation?: ViewEncapsulation,\n styles?: string[],\n styleUrls?: string[],\n animations?: AnimationEntryMetadata[]\n } = {}) {\n this.templateUrl = templateUrl;\n this.template = template;\n this.styleUrls = styleUrls;\n this.styles = styles;\n this.directives = directives;\n this.pipes = pipes;\n this.encapsulation = encapsulation;\n this.animations = animations;\n }\n}\n\ninterface DecoratorInvocation {\n type: Function;\n args?: any[];\n}\n"]}
@@ -1 +1 @@
1
- {"__symbolic":"module","metadata":{"VIEW_ENCAPSULATION_VALUES":[{"__symbolic":"select","expression":{"__symbolic":"reference","name":"ViewEncapsulation"},"member":"Emulated"},{"__symbolic":"select","expression":{"__symbolic":"reference","name":"ViewEncapsulation"},"member":"Native"},{"__symbolic":"select","expression":{"__symbolic":"reference","name":"ViewEncapsulation"},"member":"None"}]}}
1
+ {"__symbolic":"module","version":1,"metadata":{"VIEW_ENCAPSULATION_VALUES":[{"__symbolic":"select","expression":{"__symbolic":"reference","name":"ViewEncapsulation"},"member":"Emulated"},{"__symbolic":"select","expression":{"__symbolic":"reference","name":"ViewEncapsulation"},"member":"Native"},{"__symbolic":"select","expression":{"__symbolic":"reference","name":"ViewEncapsulation"},"member":"None"}]}}
@@ -2,14 +2,15 @@
2
2
  * This indirection is needed to free up Component, etc symbols in the public API
3
3
  * to be used by the decorator versions of these annotations.
4
4
  */
5
- export { QueryMetadata, ContentChildrenMetadata, ContentChildMetadata, ViewChildrenMetadata, ViewQueryMetadata, ViewChildMetadata, AttributeMetadata } from './metadata/di';
6
- export { ComponentMetadata, DirectiveMetadata, PipeMetadata, InputMetadata, OutputMetadata, HostBindingMetadata, HostListenerMetadata } from './metadata/directives';
7
- export { ViewMetadata, ViewEncapsulation } from './metadata/view';
8
- export { AfterContentInit, AfterContentChecked, AfterViewInit, AfterViewChecked, OnChanges, OnDestroy, OnInit, DoCheck } from './metadata/lifecycle_hooks';
9
- import { QueryMetadata, ContentChildrenMetadata, ViewChildrenMetadata, AttributeMetadata } from './metadata/di';
5
+ import { ChangeDetectionStrategy } from '../src/change_detection/change_detection';
6
+ import { AnimationEntryMetadata } from './animation/metadata';
7
+ import { AttributeMetadata, ContentChildrenMetadata, QueryMetadata, ViewChildrenMetadata } from './metadata/di';
10
8
  import { ComponentMetadata, DirectiveMetadata } from './metadata/directives';
11
- import { ViewMetadata, ViewEncapsulation } from './metadata/view';
12
- import { ChangeDetectionStrategy } from './change_detection/change_detection';
9
+ import { ViewEncapsulation, ViewMetadata } from './metadata/view';
10
+ export { AttributeMetadata, ContentChildMetadata, ContentChildrenMetadata, QueryMetadata, ViewChildMetadata, ViewChildrenMetadata, ViewQueryMetadata } from './metadata/di';
11
+ export { ComponentMetadata, DirectiveMetadata, HostBindingMetadata, HostListenerMetadata, InputMetadata, OutputMetadata, PipeMetadata } from './metadata/directives';
12
+ export { AfterContentChecked, AfterContentInit, AfterViewChecked, AfterViewInit, DoCheck, OnChanges, OnDestroy, OnInit } from './metadata/lifecycle_hooks';
13
+ export { ViewEncapsulation, ViewMetadata } from './metadata/view';
13
14
  import { TypeDecorator } from './util/decorators';
14
15
  import { Type } from '../src/facade/lang';
15
16
  /**
@@ -36,6 +37,7 @@ export interface ComponentDecorator extends TypeDecorator {
36
37
  renderer?: string;
37
38
  styles?: string[];
38
39
  styleUrls?: string[];
40
+ animations?: AnimationEntryMetadata[];
39
41
  }): ViewDecorator;
40
42
  }
41
43
  /**
@@ -55,6 +57,7 @@ export interface ViewDecorator extends TypeDecorator {
55
57
  renderer?: string;
56
58
  styles?: string[];
57
59
  styleUrls?: string[];
60
+ animations?: AnimationEntryMetadata[];
58
61
  }): ViewDecorator;
59
62
  }
60
63
  /**
@@ -98,7 +101,6 @@ export interface DirectiveMetadataFactory {
98
101
  host?: {
99
102
  [key: string]: string;
100
103
  };
101
- bindings?: any[];
102
104
  providers?: any[];
103
105
  exportAs?: string;
104
106
  queries?: {
@@ -114,7 +116,6 @@ export interface DirectiveMetadataFactory {
114
116
  host?: {
115
117
  [key: string]: string;
116
118
  };
117
- bindings?: any[];
118
119
  providers?: any[];
119
120
  exportAs?: string;
120
121
  queries?: {
@@ -163,20 +164,19 @@ export interface ComponentMetadataFactory {
163
164
  host?: {
164
165
  [key: string]: string;
165
166
  };
166
- bindings?: any[];
167
167
  providers?: any[];
168
168
  exportAs?: string;
169
169
  moduleId?: string;
170
170
  queries?: {
171
171
  [key: string]: any;
172
172
  };
173
- viewBindings?: any[];
174
173
  viewProviders?: any[];
175
174
  changeDetection?: ChangeDetectionStrategy;
176
175
  templateUrl?: string;
177
176
  template?: string;
178
177
  styleUrls?: string[];
179
178
  styles?: string[];
179
+ animations?: AnimationEntryMetadata[];
180
180
  directives?: Array<Type | any[]>;
181
181
  pipes?: Array<Type | any[]>;
182
182
  encapsulation?: ViewEncapsulation;
@@ -190,20 +190,19 @@ export interface ComponentMetadataFactory {
190
190
  host?: {
191
191
  [key: string]: string;
192
192
  };
193
- bindings?: any[];
194
193
  providers?: any[];
195
194
  exportAs?: string;
196
195
  moduleId?: string;
197
196
  queries?: {
198
197
  [key: string]: any;
199
198
  };
200
- viewBindings?: any[];
201
199
  viewProviders?: any[];
202
200
  changeDetection?: ChangeDetectionStrategy;
203
201
  templateUrl?: string;
204
202
  template?: string;
205
203
  styleUrls?: string[];
206
204
  styles?: string[];
205
+ animations?: AnimationEntryMetadata[];
207
206
  directives?: Array<Type | any[]>;
208
207
  pipes?: Array<Type | any[]>;
209
208
  encapsulation?: ViewEncapsulation;
@@ -260,6 +259,7 @@ export interface ViewMetadataFactory {
260
259
  encapsulation?: ViewEncapsulation;
261
260
  styles?: string[];
262
261
  styleUrls?: string[];
262
+ animations?: AnimationEntryMetadata[];
263
263
  }): ViewDecorator;
264
264
  new (obj: {
265
265
  templateUrl?: string;
@@ -269,6 +269,7 @@ export interface ViewMetadataFactory {
269
269
  encapsulation?: ViewEncapsulation;
270
270
  styles?: string[];
271
271
  styleUrls?: string[];
272
+ animations?: AnimationEntryMetadata[];
272
273
  }): ViewMetadata;
273
274
  }
274
275
  /**
@@ -351,6 +352,7 @@ export interface AttributeMetadataFactory {
351
352
  * [new ng.Query(SomeType)]
352
353
  * ]
353
354
  * ```
355
+ * @deprecated
354
356
  */
355
357
  export interface QueryMetadataFactory {
356
358
  (selector: Type | string, {descendants, read}?: {
@@ -364,6 +366,7 @@ export interface QueryMetadataFactory {
364
366
  }
365
367
  /**
366
368
  * Factory for {@link ContentChildren}.
369
+ * @stable
367
370
  */
368
371
  export interface ContentChildrenMetadataFactory {
369
372
  (selector: Type | string, {descendants, read}?: {
@@ -377,6 +380,7 @@ export interface ContentChildrenMetadataFactory {
377
380
  }
378
381
  /**
379
382
  * Factory for {@link ContentChild}.
383
+ * @stable
380
384
  */
381
385
  export interface ContentChildMetadataFactory {
382
386
  (selector: Type | string, {read}?: {
@@ -388,6 +392,7 @@ export interface ContentChildMetadataFactory {
388
392
  }
389
393
  /**
390
394
  * Factory for {@link ViewChildren}.
395
+ * @stable
391
396
  */
392
397
  export interface ViewChildrenMetadataFactory {
393
398
  (selector: Type | string, {read}?: {
@@ -399,6 +404,7 @@ export interface ViewChildrenMetadataFactory {
399
404
  }
400
405
  /**
401
406
  * Factory for {@link ViewChild}.
407
+ * @stable
402
408
  */
403
409
  export interface ViewChildMetadataFactory {
404
410
  (selector: Type | string, {read}?: {
@@ -414,6 +420,7 @@ export interface ViewChildMetadataFactory {
414
420
  * ### Example
415
421
  *
416
422
  * {@example core/ts/metadata/metadata.ts region='pipe'}
423
+ * @stable
417
424
  */
418
425
  export interface PipeMetadataFactory {
419
426
  (obj: {
@@ -429,6 +436,7 @@ export interface PipeMetadataFactory {
429
436
  * {@link InputMetadata} factory for creating decorators.
430
437
  *
431
438
  * See {@link InputMetadata}.
439
+ * @stable
432
440
  */
433
441
  export interface InputMetadataFactory {
434
442
  (bindingPropertyName?: string): any;
@@ -438,6 +446,7 @@ export interface InputMetadataFactory {
438
446
  * {@link OutputMetadata} factory for creating decorators.
439
447
  *
440
448
  * See {@link OutputMetadata}.
449
+ * @stable
441
450
  */
442
451
  export interface OutputMetadataFactory {
443
452
  (bindingPropertyName?: string): any;
@@ -445,6 +454,7 @@ export interface OutputMetadataFactory {
445
454
  }
446
455
  /**
447
456
  * {@link HostBindingMetadata} factory function.
457
+ * @stable
448
458
  */
449
459
  export interface HostBindingMetadataFactory {
450
460
  (hostPropertyName?: string): any;
@@ -452,6 +462,7 @@ export interface HostBindingMetadataFactory {
452
462
  }
453
463
  /**
454
464
  * {@link HostListenerMetadata} factory function.
465
+ * @stable
455
466
  */
456
467
  export interface HostListenerMetadataFactory {
457
468
  (eventName: string, args?: string[]): any;
@@ -479,6 +490,7 @@ export interface HostListenerMetadataFactory {
479
490
  * ### Example
480
491
  *
481
492
  * {@example core/ts/metadata/metadata.ts region='component'}
493
+ * @stable
482
494
  */
483
495
  export declare var Component: ComponentMetadataFactory;
484
496
  /**
@@ -858,6 +870,7 @@ export declare var Component: ComponentMetadataFactory;
858
870
  * Note also that although the `<li></li>` template still exists inside the `<template></template>`,
859
871
  * the instantiated
860
872
  * view occurs on the second `<li></li>` which is a sibling to the `<template>` element.
873
+ * @stable
861
874
  */
862
875
  export declare var Directive: DirectiveMetadataFactory;
863
876
  /**
@@ -876,6 +889,7 @@ export declare var Directive: DirectiveMetadataFactory;
876
889
  * A decorator can inject string literal `text` like so:
877
890
  *
878
891
  * {@example core/ts/metadata/metadata.ts region='attributeMetadata'}
892
+ * @stable
879
893
  */
880
894
  export declare var Attribute: AttributeMetadataFactory;
881
895
  /**
@@ -984,6 +998,7 @@ export declare var Attribute: AttributeMetadataFactory;
984
998
  *
985
999
  * The injected object is an unmodifiable live list.
986
1000
  * See {@link QueryList} for more details.
1001
+ * @deprecated
987
1002
  */
988
1003
  export declare var Query: QueryMetadataFactory;
989
1004
  /**
@@ -1005,6 +1020,7 @@ export declare var Query: QueryMetadataFactory;
1005
1020
  * }
1006
1021
  * }
1007
1022
  * ```
1023
+ * @stable
1008
1024
  */
1009
1025
  export declare var ContentChildren: ContentChildrenMetadataFactory;
1010
1026
  /**
@@ -1020,12 +1036,22 @@ export declare var ContentChildren: ContentChildrenMetadataFactory;
1020
1036
  * })
1021
1037
  * class SomeDir {
1022
1038
  * @ContentChild(ChildDirective) contentChild;
1039
+ * @ContentChild('container_ref') containerChild
1023
1040
  *
1024
1041
  * ngAfterContentInit() {
1025
1042
  * // contentChild is set
1043
+ * // containerChild is set
1026
1044
  * }
1027
1045
  * }
1028
1046
  * ```
1047
+ *
1048
+ * ```html
1049
+ * <container #container_ref>
1050
+ * <item>a</item>
1051
+ * <item>b</item>
1052
+ * </container>
1053
+ * ```
1054
+ * @stable
1029
1055
  */
1030
1056
  export declare var ContentChild: ContentChildMetadataFactory;
1031
1057
  /**
@@ -1106,6 +1132,7 @@ export declare var ContentChild: ContentChildMetadataFactory;
1106
1132
  * ```
1107
1133
  *
1108
1134
  * See also: [ViewChildrenMetadata]
1135
+ * @stable
1109
1136
  */
1110
1137
  export declare var ViewChildren: ViewChildrenMetadataFactory;
1111
1138
  /**
@@ -1177,6 +1204,7 @@ export declare var ViewChildren: ViewChildrenMetadataFactory;
1177
1204
  * }
1178
1205
  * ```
1179
1206
  * See also: [ViewChildMetadata]
1207
+ * @stable
1180
1208
  */
1181
1209
  export declare var ViewChild: ViewChildMetadataFactory;
1182
1210
  /**
@@ -1213,6 +1241,7 @@ export declare var ViewChild: ViewChildMetadataFactory;
1213
1241
  *
1214
1242
  * The injected object is an iterable and observable live list.
1215
1243
  * See {@link QueryList} for more details.
1244
+ * @deprecated
1216
1245
  */
1217
1246
  export declare var ViewQuery: QueryMetadataFactory;
1218
1247
  /**
@@ -1221,6 +1250,7 @@ export declare var ViewQuery: QueryMetadataFactory;
1221
1250
  * ### Example
1222
1251
  *
1223
1252
  * {@example core/ts/metadata/metadata.ts region='pipe'}
1253
+ * @stable
1224
1254
  */
1225
1255
  export declare var Pipe: PipeMetadataFactory;
1226
1256
  /**
@@ -1263,6 +1293,7 @@ export declare var Pipe: PipeMetadataFactory;
1263
1293
  *
1264
1294
  * bootstrap(App);
1265
1295
  * ```
1296
+ * @stable
1266
1297
  */
1267
1298
  export declare var Input: InputMetadataFactory;
1268
1299
  /**
@@ -1305,6 +1336,7 @@ export declare var Input: InputMetadataFactory;
1305
1336
  * }
1306
1337
  * bootstrap(App);
1307
1338
  * ```
1339
+ * @stable
1308
1340
  */
1309
1341
  export declare var Output: OutputMetadataFactory;
1310
1342
  /**
@@ -1326,8 +1358,8 @@ export declare var Output: OutputMetadataFactory;
1326
1358
  * @Directive({selector: '[ngModel]'})
1327
1359
  * class NgModelStatus {
1328
1360
  * constructor(public control:NgModel) {}
1329
- * @HostBinding('[class.valid]') get valid { return this.control.valid; }
1330
- * @HostBinding('[class.invalid]') get invalid { return this.control.invalid; }
1361
+ * @HostBinding('class.valid') get valid() { return this.control.valid; }
1362
+ * @HostBinding('class.invalid') get invalid() { return this.control.invalid; }
1331
1363
  * }
1332
1364
  *
1333
1365
  * @Component({
@@ -1341,6 +1373,7 @@ export declare var Output: OutputMetadataFactory;
1341
1373
  *
1342
1374
  * bootstrap(App);
1343
1375
  * ```
1376
+ * @stable
1344
1377
  */
1345
1378
  export declare var HostBinding: HostBindingMetadataFactory;
1346
1379
  /**
@@ -1376,5 +1409,6 @@ export declare var HostBinding: HostBindingMetadataFactory;
1376
1409
  *
1377
1410
  * bootstrap(App);
1378
1411
  * ```
1412
+ * @stable
1379
1413
  */
1380
1414
  export declare var HostListener: HostListenerMetadataFactory;
@@ -1,13 +1,14 @@
1
1
  /**
2
- * This indirection is needed to free up Component, etc symbols in the public API
3
- * to be used by the decorator versions of these annotations.
4
- */
5
- export { QueryMetadata, ContentChildrenMetadata, ContentChildMetadata, ViewChildrenMetadata, ViewQueryMetadata, ViewChildMetadata, AttributeMetadata } from './metadata/di';
6
- export { ComponentMetadata, DirectiveMetadata, PipeMetadata, InputMetadata, OutputMetadata, HostBindingMetadata, HostListenerMetadata } from './metadata/directives';
7
- export { ViewMetadata, ViewEncapsulation } from './metadata/view';
8
- import { QueryMetadata, ContentChildrenMetadata, ContentChildMetadata, ViewChildrenMetadata, ViewChildMetadata, ViewQueryMetadata, AttributeMetadata } from './metadata/di';
9
- import { ComponentMetadata, DirectiveMetadata, PipeMetadata, InputMetadata, OutputMetadata, HostBindingMetadata, HostListenerMetadata } from './metadata/directives';
2
+ * This indirection is needed to free up Component, etc symbols in the public API
3
+ * to be used by the decorator versions of these annotations.
4
+ */
5
+ import { AttributeMetadata, ContentChildMetadata, ContentChildrenMetadata, QueryMetadata, ViewChildMetadata, ViewChildrenMetadata, ViewQueryMetadata } from './metadata/di';
6
+ import { ComponentMetadata, DirectiveMetadata, HostBindingMetadata, HostListenerMetadata, InputMetadata, OutputMetadata, PipeMetadata } from './metadata/directives';
10
7
  import { ViewMetadata } from './metadata/view';
8
+ export { AttributeMetadata, ContentChildMetadata, ContentChildrenMetadata, QueryMetadata, ViewChildMetadata, ViewChildrenMetadata, ViewQueryMetadata } from './metadata/di';
9
+ export { ComponentMetadata, DirectiveMetadata, HostBindingMetadata, HostListenerMetadata, InputMetadata, OutputMetadata, PipeMetadata } from './metadata/directives';
10
+ export { AfterContentChecked, AfterContentInit, AfterViewChecked, AfterViewInit, DoCheck, OnChanges, OnDestroy, OnInit } from './metadata/lifecycle_hooks';
11
+ export { ViewEncapsulation, ViewMetadata } from './metadata/view';
11
12
  import { makeDecorator, makeParamDecorator, makePropDecorator } from './util/decorators';
12
13
  // TODO(alexeagle): remove the duplication of this doc. It is copied from ComponentMetadata.
13
14
  /**
@@ -32,6 +33,7 @@ import { makeDecorator, makeParamDecorator, makePropDecorator } from './util/dec
32
33
  * ### Example
33
34
  *
34
35
  * {@example core/ts/metadata/metadata.ts region='component'}
36
+ * @stable
35
37
  */
36
38
  export var Component = makeDecorator(ComponentMetadata, (fn) => fn.View = View);
37
39
  // TODO(alexeagle): remove the duplication of this doc. It is copied from DirectiveMetadata.
@@ -412,6 +414,7 @@ export var Component = makeDecorator(ComponentMetadata, (fn) => fn.View = View);
412
414
  * Note also that although the `<li></li>` template still exists inside the `<template></template>`,
413
415
  * the instantiated
414
416
  * view occurs on the second `<li></li>` which is a sibling to the `<template>` element.
417
+ * @stable
415
418
  */
416
419
  export var Directive = makeDecorator(DirectiveMetadata);
417
420
  // TODO(alexeagle): remove the duplication of this doc. It is copied from ViewMetadata.
@@ -443,6 +446,7 @@ export var Directive = makeDecorator(DirectiveMetadata);
443
446
  * }
444
447
  * }
445
448
  * ```
449
+ * @deprecated
446
450
  */
447
451
  var View = makeDecorator(ViewMetadata, (fn) => fn.View = View);
448
452
  /**
@@ -461,6 +465,7 @@ var View = makeDecorator(ViewMetadata, (fn) => fn.View = View);
461
465
  * A decorator can inject string literal `text` like so:
462
466
  *
463
467
  * {@example core/ts/metadata/metadata.ts region='attributeMetadata'}
468
+ * @stable
464
469
  */
465
470
  export var Attribute = makeParamDecorator(AttributeMetadata);
466
471
  // TODO(alexeagle): remove the duplication of this doc. It is copied from QueryMetadata.
@@ -570,6 +575,7 @@ export var Attribute = makeParamDecorator(AttributeMetadata);
570
575
  *
571
576
  * The injected object is an unmodifiable live list.
572
577
  * See {@link QueryList} for more details.
578
+ * @deprecated
573
579
  */
574
580
  export var Query = makeParamDecorator(QueryMetadata);
575
581
  // TODO(alexeagle): remove the duplication of this doc. It is copied from ContentChildrenMetadata.
@@ -592,6 +598,7 @@ export var Query = makeParamDecorator(QueryMetadata);
592
598
  * }
593
599
  * }
594
600
  * ```
601
+ * @stable
595
602
  */
596
603
  export var ContentChildren = makePropDecorator(ContentChildrenMetadata);
597
604
  // TODO(alexeagle): remove the duplication of this doc. It is copied from ContentChildMetadata.
@@ -608,12 +615,22 @@ export var ContentChildren = makePropDecorator(ContentChildrenMetadata);
608
615
  * })
609
616
  * class SomeDir {
610
617
  * @ContentChild(ChildDirective) contentChild;
618
+ * @ContentChild('container_ref') containerChild
611
619
  *
612
620
  * ngAfterContentInit() {
613
621
  * // contentChild is set
622
+ * // containerChild is set
614
623
  * }
615
624
  * }
616
625
  * ```
626
+ *
627
+ * ```html
628
+ * <container #container_ref>
629
+ * <item>a</item>
630
+ * <item>b</item>
631
+ * </container>
632
+ * ```
633
+ * @stable
617
634
  */
618
635
  export var ContentChild = makePropDecorator(ContentChildMetadata);
619
636
  // TODO(alexeagle): remove the duplication of this doc. It is copied from ViewChildrenMetadata.
@@ -695,6 +712,7 @@ export var ContentChild = makePropDecorator(ContentChildMetadata);
695
712
  * ```
696
713
  *
697
714
  * See also: [ViewChildrenMetadata]
715
+ * @stable
698
716
  */
699
717
  export var ViewChildren = makePropDecorator(ViewChildrenMetadata);
700
718
  // TODO(alexeagle): remove the duplication of this doc. It is copied from ViewChildMetadata.
@@ -767,6 +785,7 @@ export var ViewChildren = makePropDecorator(ViewChildrenMetadata);
767
785
  * }
768
786
  * ```
769
787
  * See also: [ViewChildMetadata]
788
+ * @stable
770
789
  */
771
790
  export var ViewChild = makePropDecorator(ViewChildMetadata);
772
791
  // TODO(alexeagle): remove the duplication of this doc. It is copied from ViewQueryMetadata.
@@ -804,6 +823,7 @@ export var ViewChild = makePropDecorator(ViewChildMetadata);
804
823
  *
805
824
  * The injected object is an iterable and observable live list.
806
825
  * See {@link QueryList} for more details.
826
+ * @deprecated
807
827
  */
808
828
  export var ViewQuery = makeParamDecorator(ViewQueryMetadata);
809
829
  // TODO(alexeagle): remove the duplication of this doc. It is copied from PipeMetadata.
@@ -813,6 +833,7 @@ export var ViewQuery = makeParamDecorator(ViewQueryMetadata);
813
833
  * ### Example
814
834
  *
815
835
  * {@example core/ts/metadata/metadata.ts region='pipe'}
836
+ * @stable
816
837
  */
817
838
  export var Pipe = makeDecorator(PipeMetadata);
818
839
  // TODO(alexeagle): remove the duplication of this doc. It is copied from InputMetadata.
@@ -856,6 +877,7 @@ export var Pipe = makeDecorator(PipeMetadata);
856
877
  *
857
878
  * bootstrap(App);
858
879
  * ```
880
+ * @stable
859
881
  */
860
882
  export var Input = makePropDecorator(InputMetadata);
861
883
  // TODO(alexeagle): remove the duplication of this doc. It is copied from OutputMetadata.
@@ -899,6 +921,7 @@ export var Input = makePropDecorator(InputMetadata);
899
921
  * }
900
922
  * bootstrap(App);
901
923
  * ```
924
+ * @stable
902
925
  */
903
926
  export var Output = makePropDecorator(OutputMetadata);
904
927
  // TODO(alexeagle): remove the duplication of this doc. It is copied from HostBindingMetadata.
@@ -921,8 +944,8 @@ export var Output = makePropDecorator(OutputMetadata);
921
944
  * @Directive({selector: '[ngModel]'})
922
945
  * class NgModelStatus {
923
946
  * constructor(public control:NgModel) {}
924
- * @HostBinding('[class.valid]') get valid { return this.control.valid; }
925
- * @HostBinding('[class.invalid]') get invalid { return this.control.invalid; }
947
+ * @HostBinding('class.valid') get valid() { return this.control.valid; }
948
+ * @HostBinding('class.invalid') get invalid() { return this.control.invalid; }
926
949
  * }
927
950
  *
928
951
  * @Component({
@@ -936,6 +959,7 @@ export var Output = makePropDecorator(OutputMetadata);
936
959
  *
937
960
  * bootstrap(App);
938
961
  * ```
962
+ * @stable
939
963
  */
940
964
  export var HostBinding = makePropDecorator(HostBindingMetadata);
941
965
  // TODO(alexeagle): remove the duplication of this doc. It is copied from HostListenerMetadata.
@@ -972,6 +996,7 @@ export var HostBinding = makePropDecorator(HostBindingMetadata);
972
996
  *
973
997
  * bootstrap(App);
974
998
  * ```
999
+ * @stable
975
1000
  */
976
1001
  export var HostListener = makePropDecorator(HostListenerMetadata);
977
1002
  //# sourceMappingURL=metadata.js.map