09 2017 档案

摘要:1.辅助路由 2. 创建chat组件 ng g component chat 3. 组件html css: 1 2 3 4 5 6 7 .chat{ background:green; height:100px; width:20%; flow:left; box-sizing: border-bo 阅读全文
posted @ 2017-09-28 09:41 a fine day
摘要:原文地址 http://www.jianshu.com/p/317f0e4b7284 根模块 (root module) 每个应用都至少有一个根模块用来引导并运行应用。根模块通常命名为 AppModule。 示例 src/app/app.module.ts import { NgModule } f 阅读全文
posted @ 2017-09-27 11:06 a fine day
摘要: 阅读全文
posted @ 2017-09-27 10:52 a fine day
摘要:http://www.cnblogs.com/dojo-lzz/p/5878073.html 阅读全文
posted @ 2017-09-26 15:36 a fine day
摘要:for in 是es6之前就有的循环下标的方式 for of 是typescript的循环对象或者数组中值的方式,但是不能循环普通的对象,需要通过和Object.keys()搭配使用,如果循环普通对象会报错 举个栗子: var arr = [9,5,6,7,8,2]; arr.s = "sb";(后 阅读全文
posted @ 2017-09-18 15:58 a fine day
摘要:table tbody { display:block; height:195px; overflow-y:scroll; } table thead, tbody tr { display:table; width:100%; table-layout:fixed; } 阅读全文
posted @ 2017-09-12 18:43 a fine day
摘要:$watch是一个scope函数,用于监听模型变化,当你的模型部分发生变化时它会通知你。 $watch(watchExpression, listener, objectEquality); 举个栗子: $scope.name = 'hello'; var watch = $scope.$watch 阅读全文
posted @ 2017-09-06 10:50 a fine day
摘要:项目中利用了前些时候写的弹出dialog的方式,验证方式用了控件angular-validation(http://www.cnblogs.com/FineDay/p/7255689.html) 验证的方式validate-method有blur,submit,only-submit,watch(默 阅读全文
posted @ 2017-09-05 10:58 a fine day
摘要:AngularJS 的文件上传控件有两个:(1) angular-file-upload:https://github.com/nervgh/angular-file-upload(2) ng-file-upload:https://github.com/danialfarid/ng-file-up 阅读全文
posted @ 2017-09-05 10:25 a fine day