Skip to content

Deprecate "old class binding" syntax #665

@chancancode

Description

@chancancode

Basically deprecate and remove this file: https://github.com/emberjs/ember.js/blob/aeef923e9f5f7dde2bc43fcdddabc4a3b98769ec/packages/ember-template-compiler/lib/plugins/transform-old-class-binding-syntax.ts

TL;DR deprecate passing classBindings and classNameBindings as arguments when doing curly component invocations, i.e. instead of {{my-component classNameBindings="foo:bar:baz"}}, write {{my-component class=(if this.foo "bar" "baz")}}, or better yet, <MyComponent class={{if this.foo "bar" "baz"}} />.

Note that classBindings and classNameBindings already does not work on angle bracket invocations.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions