Skip to content

Commit 48d11ea

Browse files
Use init instead of didReceiveAttrs
1 parent dc51d7c commit 48d11ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

addon/components/docs-demo/x-example/component.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export default Component.extend({
66

77
classNames: 'docs-demo-example',
88

9-
didReceiveAttrs() {
9+
init() {
1010
this._super(...arguments);
1111
this.set('elementId', 'example-' + this.get('name'));
1212
}

0 commit comments

Comments
 (0)