Loading...
「ツール」は右上に移動しました。
利用したサーバー: wtserver1
35いいね 2,756 views回再生

ES2015 Modules vs Angular Modules with Deborah Kurata

You may wonder about how ES2015 modules differ from Angular modules. We interview Deborah Kurata and she explains the details and differences between the two.

With ES2015 modules, developers can now create a code file and import or export from it using import and export statements. ES2015 modules sit at the micro level and are simply files. Meanwhile, Angular modules are more macro and provide a method for breaking up applications into big chunks with each containing the information an application needs to carry out its function.

The best way to take advantage of Angular modules to start with an app module. This particular module holds an application together and can get too big as a developer builds out their application. When this occurs, it is important to begin breaking up your application into smaller, separate modules. Sometimes, these are referred to as feature modules.

Creating feature modules is beneficial because many individuals use Angular to build enterprise-wide applications and need the flexibility to break their application into smaller pieces so they can better manage and keep track of the things various teams are working on. Additionally, utilizing Angular modules and lazy loading them into your application as separate bundles can and should improve overall performance of an application.

You can find Deborah on twitter at @DeborahKurata

For more JavaScript focused news & events, visit http://thisdot.co.

Sponsored by This Dot Labs, a framework agnostic mentoring co built by core OSS contributors. http://thisdot.co/labs

コメント