- Hands-On Full Stack Web Development with Aurelia
- Diego Jose Argüelles Rojas Erikson Haziz Murrugarra Sifuentes
- 133字
- 2021-06-25 20:58:21
Generating custom resources
Aurelia, like many JavaScript frameworks, allows you to create reusable components that help you avoid writing duplicated code, reuse your component in multiple parts of your app, and also export them as plugins to reuse them in other projects.
Aurelia allows you to generate the reusable pieces of code utilizing the following templates:
- Components
- Custom elements
- Custom attributes
- Binding-behaviors
- Value-converters
These templates are all located in our project root folder in the aurelia_project/generators folder. For example, the following command generates a custom Aurelia element:
au generate element my-reusable-element
The source code will be generated in the src/resources/{type} folder depending on the type you selected.
Each type will be discussed in the following chapters, so don't feel bad if you don't understand the differences between them. Keep reading my friend! :)
- 黑客攻防實戰技術完全手冊:掃描、嗅探、入侵與防御
- MERN Quick Start Guide
- Web Application Development with R Using Shiny
- HTML5 Game development with ImpactJS
- PLC、現場總線及工業網絡實用技術速成
- 計算機網絡與通信(第2版)
- 計算機網絡工程實用教程(第2版)
- 端到端QoS網絡設計
- 移動物聯網:商業模式+案例分析+應用實戰
- 沖擊:5G如何改變世界
- Dart Cookbook
- LwIP應用開發實戰指南:基于STM32
- 物聯網基礎及應用
- 物聯網與智慧農業
- Enterprise ApplicationDevelopment with Ext JSand Spring