DEV Community

Discussion on: Angular Apps in TypeScript or Dart?

Collapse
 
bobrov1989 profile image
Vitalii Bobrov • Edited

Great post! Just few issues with code examples:

  • don't use Null as return type, as it's low-level type you don't want to use in 99% of cases -so instead Future<Null> use Future<void>
  • It is a good practive to keep ngOnInit sync = you can extract the async setup into separate method and call it wrapped in unawaited() for example