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! :)
- 新一代物聯(lián)網(wǎng)架構(gòu)技術(shù):分層算力網(wǎng)絡(luò)
- 互聯(lián)網(wǎng)基礎(chǔ)資源技術(shù)與應(yīng)用發(fā)展態(tài)勢(2021—2023)
- 互聯(lián)網(wǎng)安全的40個智慧洞見:2014年中國互聯(lián)網(wǎng)安全大會文集
- 區(qū)塊鏈輕松上手:原理、源碼、搭建與應(yīng)用
- Mastering Dart
- 局域網(wǎng)組成實(shí)踐
- 沖擊:5G如何改變世界
- Dart Cookbook
- 全聯(lián)網(wǎng)標(biāo)識服務(wù)
- RestKit for iOS
- 黑客與反黑工具使用詳解
- 巧學(xué)活用CISCO網(wǎng)絡(luò)典型配置
- CDN技術(shù)詳解
- Alfresco Share
- CCNP TSHOOT(642-832)學(xué)習(xí)指南