随笔分类 -  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... 阅读全文
posted @ 2019-05-28 19:16 Nyan 阅读(193) 评论(0) 推荐(0) 编辑
摘要:1.checkbox event: 2.checkbox html: 阅读全文
posted @ 2018-06-26 17:07 Nyan 阅读(206) 评论(0) 推荐(0) 编辑
摘要:form-item-control.service.ts update dynamic-form.component update 阅读全文
posted @ 2017-12-28 09:32 Nyan 阅读(164) 评论(0) 推荐(0) 编辑
摘要:导入所需模块: DynamicFormComponent.html DynamicFormComponent.ts FormItemBase.ts FormTextbox.ts FormDropdown.ts FormItemControl.ts QuestionComponent.html Que 阅读全文
posted @ 2017-12-15 20:18 Nyan 阅读(278) 评论(0) 推荐(0) 编辑
摘要:使用方法一(文件形式定义): animations.ts 在component中使用: 使用方法二(直接使用): import { animate, AnimationEntryMetadata, state, style, transition, trigger } from '@angular/ 阅读全文
posted @ 2017-12-14 16:29 Nyan 阅读(521) 评论(0) 推荐(0) 编辑
摘要:引入: 阅读全文
posted @ 2017-12-14 14:49 Nyan 阅读(241) 评论(0) 推荐(0) 编辑
摘要:路由定位: 路由定义: UserResolve: 获取数据: userService: 参考路由配置思路(课件abstract路由可不需要path): 阅读全文
posted @ 2017-11-25 22:37 Nyan 阅读(526) 评论(0) 推荐(0) 编辑
摘要:客户端GET设置参数查询: node服务器响应: 跨域设置: bodyParse use: GET,POST,DELTE,PUT: 阅读全文
posted @ 2017-11-24 13:03 Nyan 阅读(344) 评论(0) 推荐(0) 编辑
该文被密码保护。
posted @ 2017-11-19 22:14 Nyan 阅读(5) 评论(0) 推荐(0) 编辑
摘要:环境准备: cnpm install ngx-bootstrap-modal --save-dev impoerts: [BootstrapModalModule.forRoot({container: ducument.body})] usage: show: 内置模态框包括 alert conf 阅读全文
posted @ 2017-11-18 09:32 Nyan 阅读(292) 评论(0) 推荐(0) 编辑
摘要: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 阅读全文
posted @ 2017-11-11 23:03 Nyan 阅读(494) 评论(0) 推荐(0) 编辑
摘要:app.module.ts app-nav-bar.component.heml update login.component.html home.component.html update app.component.html 阅读全文
posted @ 2017-11-04 22:23 Nyan 阅读(308) 评论(0) 推荐(0) 编辑
摘要:环境: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 阅读全文
posted @ 2017-11-04 11:06 Nyan 阅读(1160) 评论(0) 推荐(0) 编辑
摘要:删除(过滤)树形结构某一个子节点: 使用_.remove(): 阅读全文
posted @ 2017-11-03 15:51 Nyan 阅读(373) 评论(0) 推荐(0) 编辑
摘要:Angular 4.0 架构 这个架构图展现了 Angular 应用中的 8 个主要构造块: 模块 (module) 组件 (component) 模板 (template) 元数据 (metadata) 数据绑定 (data binding) 指令 (directive) 服务 (service) 阅读全文
posted @ 2017-10-30 19:45 Nyan 阅读(238) 评论(0) 推荐(0) 编辑
摘要:treeView.html treeItem.html controller.html treeView.directive treeView.controller 阅读全文
posted @ 2017-10-27 15:15 Nyan 阅读(2858) 评论(2) 推荐(0) 编辑
摘要:$q延迟加载: 当一个数据需要请求多次,后面一个数据需要前面请求的数据时,我们就可以通过延迟加载进行数据传递 如下代码: 首先:我们需要得到职位信息: 其次通过职位信息里面的companyId获得company信息: 阅读全文
posted @ 2017-06-10 12:50 Nyan 阅读(300) 评论(0) 推荐(0) 编辑
摘要:directive: 匹配模式restrict:'AEMC'默认为A template templateUrl templateCache:把模板缓存起来,共多个指令使用 replace: transclude:指令互相嵌套 独立scope scope:{} 绑定策略 内置指令63: compile 阅读全文
posted @ 2017-03-15 21:44 Nyan 阅读(640) 评论(0) 推荐(0) 编辑
摘要:代码编辑工具 Sunblime,wenstonm 断点调试工具 chrom Batarang插件 版本管理工具 git,git小乌龟 代码合并和混淆工具 node.js grunt(uglify,concat,watch) npm install grunt node_modules 依赖管理工具 阅读全文
posted @ 2017-03-13 21:14 Nyan 阅读(150) 评论(0) 推荐(0) 编辑
摘要:MVC:作为DataModel的$scope 依赖注入DI 模块化Module Service Filter Two way DateBinding Directive Unit Testing&E2E Testing AngularJS应用的解析 映射到模型-视图-控制器设计模式 模板(Templ 阅读全文
posted @ 2017-03-10 22:15 Nyan 阅读(188) 评论(0) 推荐(0) 编辑

1
点击右上角即可分享
微信分享提示