ionic notes

Ionic

         Download ionic

         Using the command line to install npm

  1. Installation directory nodejs final installation in the C: \ Program Files \ nodejs

Detection node installation was successful? node -v

If the error, because there is no default is installed in c drive program Files

We need to configure the environment variables

         Step 1: Find the directory

        

 

         The second step

   

 

Management tool Npm node package manager management module (package) of the tool

Modular benefit: decoupling, reduce the degree of coupling, can be reused to improve development efficiency, contribute to team development.

How to define modules:

         1. In the node modules are all Folder.

 

How to use the module:

  1. Official direct download https://www.npmjs.com/

Npm install the module name shorthand npm i module name

After the download is complete all the packages are present node_modules folder

Var j = require ( "package name");

  1. Artificial package

1. The need to create package.json npm init file should be noted that the way to enter the main property

        

         2. The package can not be directly defined by the require ( "package name") with a relative path. If you have to use the package name directly, you need to put your bag node_modules folder.

Ionic If the app page header content footer

 

 

Angular

  1. Single page application
  2. Html extended instruction

Scope a) ng-app = "" a defined angular

b) ng-model = "" binding data with the application

3.ng-bind = "" Binding to the html data.

4.ng-init = "" initialization data

Guess you like

Origin www.cnblogs.com/ymlo/p/11802994.html