uniquejava / blog

My notes regarding the vibrating frontend :boom and the plain old java :rofl.
Creative Commons Zero v1.0 Universal
11 stars 5 forks source link

live template #73

Open uniquejava opened 7 years ago

uniquejava commented 7 years ago

angular2的input属性及插值符{{}}

我定义了p输出input属性[]="", k输出插值符{{ }}, 设置如下: pk-mini

p一下及k一下, 眼睛不用离开屏幕去找[]和{}.

misc

bootstrap3 直接下同名的插件 angular下载angular template expressjs见这里: https://github.com/uniquejava/so_angular-api

todo expregister explogin explogout expcors expmodel (参考别人的插件,自动大写Entity的名字,用户只用输入小写的model名称)

expdep

  "dependencies": {
    "body-parser": "^1.15.2",
    "express": "^4.14.0",
    "mongoose": "^4.5.8"
  }
uniquejava commented 7 years ago

1. js

log

console.log($var$);$END$

logv

console.log('$var$=', $var$);$END$

2. angular 2

p

[$var1$]="$var2$"

k

{{ $var$ }}