angular data is defined and used

angular definition data, direct variable, e.g., test = ' "xxx"

Data page using {{test}}

 

Little rigorous written ts

  public test:string = "test";

public public

protect can be used in the current class and subclass

private may be used in the current class

Guess you like

Origin www.cnblogs.com/luguankun/p/11795985.html