Angular basics --- module, decorators, components, how to create components, event handling mechanism, the interpolation expression (double parentheses)

1, angular Introduction

  

    

    

    

    

    

    

2, build a development environment

  Installation prerequisites angular cli to be installed as follows (angular unlike vue as well as in the form of a script tag references, he began to walk is a 'family bucket' design ideas, so to install angular cli)

  

  

    

     3, start the project npm start (see line specifically named configuration file package.json)

      

3, recognizing the file directory Scaffolding project ---- a basic understanding of files in each directory is doing

   

   

 

4, angular how the project started

  

5, angular core concepts

  Any learning a framework should focus on his core concepts and learning

  

    Development Framework as a single page

      vue: vue example; vue example of the lifecycle; instruction ; component; component lifecycle; data binding; route; vuex; axios. . .

      react: Virtual dom; diff algorithm; jsx grammar; components; component life cycle; routing; fetch data requests. . .

      angular: component assembly decorator

  

6, create and use the components of angular

  

  

  

  How to create a new form of angular (different from the vue in their new file and react, angular components with the new generation named line statement, presumably because more angular component supporting file types)

  (Set up after the editor does not need to lose every time the assembly line to create named)

  New components, also updated the file management module (management so components)

   

  

7, angular modules

  

  

  Note: The entire file will execute introduced during import and export out of the return value of the execution to a variable defined when import receives

8, angular templates

   

9, data binding

  

10, the instruction

  

11, service

  

 

 12, dependency injection

  

  

  

 

 

  

        

Guess you like

Origin www.cnblogs.com/yangyutian/p/11115902.html