Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

Commit

Permalink
refactor(chips): remove deprecated md-on-append attribute
Browse files Browse the repository at this point in the history
BREAKING CHANGE: Removed the deprecated, since 2015, `md-on-append` attribute. It was deprecated in favor of `md-transform-chip` or the simple notifier `md-on-add`. Please see the [md-chips Demos](https://material.angularjs.org/latest/demo/chips) for examples of using `md-transform-chip`.
  • Loading branch information
Splaktar committed Jul 27, 2020
1 parent 75aa734 commit 1a2e3d0
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/components/chips/js/chipsDirective.js
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,6 @@
secondaryPlaceholder: '@?',
maxChips: '@?mdMaxChips',
transformChip: '&mdTransformChip',
onAppend: '&?mdOnAppend',
onAdd: '&?mdOnAdd',
onRemove: '&?mdOnRemove',
addedMessage: '@?mdAddedMessage',
Expand Down Expand Up @@ -416,13 +415,6 @@
// before appending chips.
if (attrs.mdTransformChip) mdChipsCtrl.useTransformChipExpression();

// If an `md-on-append` attribute was set, tell the controller to use the expression
// when appending chips.
//
// TODO: Remove this now that 1.0 is long since released
// DEPRECATED: Will remove in official 1.0 release
if (attrs.mdOnAppend) mdChipsCtrl.useOnAppendExpression();

// If an `md-on-add` attribute was set, tell the controller to use the expression
// when adding chips.
if (attrs.mdOnAdd) mdChipsCtrl.useOnAddExpression();
Expand Down

0 comments on commit 1a2e3d0

Please sign in to comment.