hi, i’m so confused about makeDecorator, because i can’t import it from core, so how to import it…
Shouhua Peng

Hi Shouhua Peng. makeDecorator isn’t export by default on core, you have to go a bit deep and you can find it as this:

import { makeDecorator } from ‘@angular/core/src/util/decorators’;

If you explore this file you will find the other decorators used internally by angular.

Like what you read? Give Miguel Ramos a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.