官术网_书友最值得收藏!

Get Into Shape with @NgModule

In this chapter, we are going to kick things off with some solid project organization exercises to prepare us for building an amazing app with NativeScript for Angular. We want to give you some insights into a few important and powerful concepts to think about as you plan your architecture, to pave your way to a smooth development experience with scalability in mind.

Combining Angular with NativeScript provides a wealth of useful paradigms and tools to construct and plan your app. As often said, with great power comes great responsibility, and as awesome as this tech combination is to create amazing apps, they can also be used for creating an overengineered and difficult to debug app. Let's take a few chapters to walk through some exercises you can use to help avoid common pitfalls and truly unlock the full potential of this stack.

We will introduce you to Angular's @NgModule decorator, which we will use exclusively to help organize our app's code into logical units with explicit purpose and portability in mind. We will also introduce a few Angular concepts we will use in our architecture, such as dependency injectable services. After doing our diligence in building a solid foundation to work with, we will rapidly approach running our app for the first time towards the end of third chapter.

In this chapter, we will be covering the following topics:

  • What is NativeScript for Angular?
  • Setting up your native mobile app
  • Project Organization
  • Architecture planning
  • @NgModule decorator
  • @Injectable decorator
  • Breaking your app into modules
主站蜘蛛池模板: 富蕴县| 潍坊市| 兴业县| 库尔勒市| 尼木县| 新和县| 清镇市| 新源县| 中牟县| 陆丰市| 大英县| 汨罗市| 肇州县| 丰镇市| 蓬安县| 凤山市| 南昌市| 灌阳县| 榆林市| 芜湖县| 册亨县| 会同县| 津市市| 安乡县| 湘乡市| 临澧县| 咸宁市| 遂溪县| 黄平县| 凤翔县| 龙里县| 宝鸡市| 沈丘县| 宝丰县| 庆云县| 永康市| 永善县| 平度市| 五大连池市| 苏尼特左旗| 桃园县|