Navigating to an Atomic Service
You can use APIs provided by ASCF to navigate from an atomic service developed under ASCF to another atomic service. For details, please refer to Navigation.
Example:
has.navigateToAtomicService({
appId: 'xxxx', // App ID of the target atomic service.
path: '',
extraData: { data: 'extraData' },
wantParam: { wantParam: 'wantParam' },
success: () => {
console.info('navigateToAtomicService success');
},
fail: (err) => {
console.error('navigateToAtomicService fail', err);
},
complete: (res) => {
console.info('navigateToAtomicService complete', res);
}
});