Importing statement convention in a feature component or service
You can import statement convention in a feature or a component by using Sterling Store Engagement.
A feature component or service might need to import other components as dependencies that are
located in the same feature module. The import statement cannot use relative paths except for the
files in the current directory. You can define the path from the base location,
src
, by using the aliases to the AppCommonModule
and all the
feature modules.
Following is a sample import statement:
import { ViewSerialsComponent } from '@sim-features/backroom-pick/modals/view-serials/view-serials.component';
import { NotesModalComponent } from '@sim-app-common/components/notes-modal/notes-modal.component';
import { PickOrderPageComponent } from '@sim-features/backroom-pick/pick-order-page/pick-order-page.component';
import { PickOrderDataService } from './pick-order-data.service';