Use of Curly Braces while importing

import { computed, observer } from ‘@ember/object’;

import Controller from ‘@ember/controller’;

why curly braces for first line and not needed for second line?

1 Like

In first line you import just two properties from object package in second you import whole package.

For more details I recommend MDN import - JavaScript | MDN

1 Like