Fetch API
1. Load whole data from one json file with fetch api
// Use ES7 Await/Async
async ngOnInit() {
const menuListObj = await(await fetch('assets/data/dashboard.json')).json();
}
每天一点点
1. Load whole data from one json file with fetch api
// Use ES7 Await/Async
}