Skip to content

Remove uses of deprecated API #12

@GZGavinZhao

Description

@GZGavinZhao

Notable deprecations:

  • ElementRef => HtmlElement or Element.
  • All other classes that uses ElementRef in some way, such as NgRuler.
  • XXXComponentRenderer => XXXFactoryRenderer for more tree-shakeable code.
  • action => actionWithContext, but actionWithContext also seems to be deprecated in some way...
  • ManagedZone, Angular2ManagedZone, and all other Zone => use NgZone directly.

The following files uses deprecated API (generated from script):

100% Done!
302 out of 303 files are still using deprecated API!

  • laminate/overlay/module.dart
  • laminate/portal/portal.dart
  • laminate/ruler/module.dart
  • material_datepicker/date_input.dart
  • material_datepicker/module.dart
  • material_expansionpanel/material_expansionpanel.dart
  • material_input/base_material_input.dart
  • material_input/material_auto_suggest_input.dart
  • material_input/material_input_multiline.dart
  • material_menu/material_fab_menu.dart
  • material_menu/menu_item_groups.dart
  • material_popup/material_popup.dart
  • material_ripple/material_ripple.dart
  • material_select/dropdown_button.dart
  • material_select/material_select_dropdown_item.dart
  • material_select/material_select_item.dart
  • mixins/highlight_assistant_mixin.dart
  • model/date/time_zone_aware_clock.dart
  • model/menu/delegating_menu_item.dart
  • model/menu/menu.dart
  • model/selection/selection_container.dart
  • reorder_list/reorder_list.dart
  • src/laminate/popup/popup_hierarchy.dart
  • src/material_datepicker/calendar/week.dart
  • src/material_tree/material_tree_node.dart
  • src/material_tree/material_tree_root.dart
  • src/model/selection/delegating_selection_model.dart
  • src/model/selection/multi_selection_model_impl.dart
  • src/model/selection/single_selection_model_impl.dart
  • src/utils/angular/managed_zone/managed_zone.dart
  • src/utils/async/priority_stream_iterator.dart Remove deprecated "implement Function" #46
  • utils/angular/managed_zone/interface.dart
  • utils/angular/reference/reference.dart
  • utils/browser/dom_service/dom_service.dart
  • utils/browser/events/events.dart

When you create a pull request, please make sure to specify in your message or title which files you fixed, and reference this issue!

Metadata

Metadata

Assignees

No one assigned

    Labels

    compatibilityRelated to compatibility with Angular v7

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions