随笔分类 - AngularJS
1
摘要:var startX = 0, startY = 0, x = 0, y = 0, minDragRang = 50; var targetContainer = angular.element(document.getElementsByClassName('target-container-class')); var targetHeader = angular.element(docume...
阅读全文
摘要:1.checkbox event: 2.checkbox html:
阅读全文
摘要:form-item-control.service.ts update dynamic-form.component update
阅读全文
摘要:导入所需模块: DynamicFormComponent.html DynamicFormComponent.ts FormItemBase.ts FormTextbox.ts FormDropdown.ts FormItemControl.ts QuestionComponent.html Que
阅读全文
摘要:使用方法一(文件形式定义): animations.ts 在component中使用: 使用方法二(直接使用): import { animate, AnimationEntryMetadata, state, style, transition, trigger } from '@angular/
阅读全文
摘要:路由定位: 路由定义: UserResolve: 获取数据: userService: 参考路由配置思路(课件abstract路由可不需要path):
阅读全文
摘要:客户端GET设置参数查询: node服务器响应: 跨域设置: bodyParse use: GET,POST,DELTE,PUT:
阅读全文
摘要:环境准备: cnpm install ngx-bootstrap-modal --save-dev impoerts: [BootstrapModalModule.forRoot({container: ducument.body})] usage: show: 内置模态框包括 alert conf
阅读全文
摘要:app.module.ts update nav-bar.compoonent.html update login.component.html add login.component.ts add login-auth.service.ts add authentication.service.t
阅读全文
摘要:app.module.ts app-nav-bar.component.heml update login.component.html home.component.html update app.component.html
阅读全文
摘要:环境:nodeJS,git,angular/cli npm install -g cnpm --registry=https://registry.npm.taobao.org cnpm install -g @angular/cli@1.4.9 ng new angularDemo ng -v n
阅读全文
摘要:删除(过滤)树形结构某一个子节点: 使用_.remove():
阅读全文
摘要:Angular 4.0 架构 这个架构图展现了 Angular 应用中的 8 个主要构造块: 模块 (module) 组件 (component) 模板 (template) 元数据 (metadata) 数据绑定 (data binding) 指令 (directive) 服务 (service)
阅读全文
摘要:treeView.html treeItem.html controller.html treeView.directive treeView.controller
阅读全文
摘要:$q延迟加载: 当一个数据需要请求多次,后面一个数据需要前面请求的数据时,我们就可以通过延迟加载进行数据传递 如下代码: 首先:我们需要得到职位信息: 其次通过职位信息里面的companyId获得company信息:
阅读全文
摘要:directive: 匹配模式restrict:'AEMC'默认为A template templateUrl templateCache:把模板缓存起来,共多个指令使用 replace: transclude:指令互相嵌套 独立scope scope:{} 绑定策略 内置指令63: compile
阅读全文
摘要:代码编辑工具 Sunblime,wenstonm 断点调试工具 chrom Batarang插件 版本管理工具 git,git小乌龟 代码合并和混淆工具 node.js grunt(uglify,concat,watch) npm install grunt node_modules 依赖管理工具
阅读全文
摘要:MVC:作为DataModel的$scope 依赖注入DI 模块化Module Service Filter Two way DateBinding Directive Unit Testing&E2E Testing AngularJS应用的解析 映射到模型-视图-控制器设计模式 模板(Templ
阅读全文
1