angular笔记
[angularjs] angularjs系列笔记(七)HTML DOM详解编程语言
button ng-disabled="mySwitch" 点击 /button input type="checkbox" ng-model="mySwitch"/ 切换 /div div ng-controller="ngShowTest" 测试ng-show指令 p ng-show="true" 可见 /p p ng-show="false" 不可见 /p
日期 2023-06-12 10:48:40[angularjs] angularjs系列笔记(六)http详解编程语言
app.controller("httpTest",function($scope,$http){ $http.get("api.php").then(function(res){ console.log(res); var names=res.data.list; $scope.names=names; }); }); /script
日期 2023-06-12 10:48:40[angularjs] angularjs系列笔记(二)指令详解编程语言
var app=angular.module("Home",[]); //调用应用对象的controller()方法,参数:控制器名,回调函数 app.controller("index",function($scope){ $scope.names=[{name:tsh},{name:tsh1}]; /script 创建自定义指令 使用.direct
日期 2023-06-12 10:48:402020国庆节 Angular structual 指令学习笔记(<ng-template>) 包含语法糖解糖过程
Structural directives are responsible for HTML layout. They shape or reshape the DOM’s structure, typically b
日期 2023-06-12 10:48:40Angular应用ng serve命令行的学习笔记
在Angular项目下执行命令行ng serve --open: The ng serve command builds the app, starts the development server, watc
日期 2023-06-12 10:48:40Angular CLI builder 学习笔记
处理器函数接收两个参数:一组 options 输入(JSON 对象)和一个 context(BuilderContext 对象)。 前者由使用 Angu
日期 2023-06-12 10:48:40Angular Schematics 学习笔记
网址:https://angular.io/guide/schematics A schematic is a template-based code generator that supports c
日期 2023-06-12 10:48:40Angular 依赖注入学习笔记之工厂函数的用法
网址:https://angular.institute/di We can transfer any data through our apps, transform it and replace i
日期 2023-06-12 10:48:40Angular Universal 学习笔记 - 客户端渲染和服务器端渲染的区别
https://github.com/angular/universal Universal 的命名由来: We believe that using the word “universal” is
日期 2023-06-12 10:48:40Angular 服务器端渲染的学习笔记(二)
官网地址:https://angular.io/guide/universal I have mainly used angular universal for SEO purposes. In tha
日期 2023-06-12 10:48:40Angular 项目里 angular.json 文件内容的学习笔记
看一个基于 Angular 的 SAP Spartacus 项目里 angular.json 的例子: version: The configuration-file version. newProj
日期 2023-06-12 10:48:40Angular Jasmine 里一些常用概念学习笔记 - describe, it, beforeEach的用法
describe: 定义一个test spec group,用来包裹多个specs,也称为suite: describe的第二个参数是一个函数,待测试的spec&
日期 2023-06-12 10:48:40Angular内部对template的处理学习笔记
https://blog.angular-university.io/angular-2-what-is-unidirectional-data-flow-development-mode/ How does Angula
日期 2023-06-12 10:48:40Angular ng-container元素的学习笔记
下面这段代码,迭代items集合元素中每一个item,当且仅当item.id不为false时,才在页面显示item.name的属性值。 如果item.id为空,最
日期 2023-06-12 10:48:40Angular依赖注入官方文档的学习笔记
providers: [ { provide: CheckoutDeliveryService, useClass: MockCheckoutDeliveryServi
日期 2023-06-12 10:48:402020国庆节 Angular structual 指令学习笔记(<ng-template>) 包含语法糖解糖过程
Structural directives are responsible for HTML layout. They shape or reshape the DOM’s structure, typically b
日期 2023-06-12 10:48:40angular基本知识学习笔记 - Component的基本概念
官网地址:https://angular.io/guide/architecture Angular is a platform and framework for building single-pa
日期 2023-06-12 10:48:40Angularjs进阶笔记(2)—自定义指令中的数据绑定
【摘要】有关自定义指令的scope参数,网上很多文章都在讲这3种绑定方式实现的效果是什么,但几乎没有人讲到底怎么使用,本篇希望聊聊到底怎么用这个话题。 一. 自定义指令 自定义指令,是Angularjs用来实现组件化的方式,相比于React和Vue的组件化方式,它真的很
日期 2023-06-12 10:48:40angularjs1.X进阶笔记(3)——如何重构controller
【快速下载】:如何重构controller(演示文稿及示例代码).rar 本篇是培训交流会的摘要总结,培训PPT和示例代码见附件。 一. 结构拆分 小型项目 通过子路由实现拆分分层,父级控制器控制共享模块,提供公共能力,子级分管自己的模块,
日期 2023-06-12 10:48:40AngularJS in Action读书笔记5(实战篇)——在directive中引入D3饼状图显示
前言: "宁肯像种子一样等待 也不愿像疲惫的陀螺 旋转得那样勉强" 这是前几天在查资料无意间看到的一位园友的签名,看完后又读了两遍,觉得很有味道。后来一寻根究底才知这是出资大诗人汪国真之口,出处《她》。且抛开上下文,单从这短短几句,正恰如其分的折射出有一群人,他们穿着不那么fashion,言辞不那么犀利,但是内心某一块地方像是躁动的火山,拥有无尽的动力和激情,
日期 2023-06-12 10:48:40AngularJS in Action读书笔记4(实战篇)——创建Statistic模块
个人感觉《Angularjs in action》这本书写的很好,很流畅,循序渐进,深入浅出,关键是结合了一个托管于Github上的实例讲解的,有代码可查,对于初学者应该是个不错的途径。(不是打广告)其实书早已经看完一遍,脑瓜子里面已经存储了一些module、controller、directive、scope等等这些概念,但是怎么把这些东西串起来,用起来,不动手,还是不能检验看书的效果。所
日期 2023-06-12 10:48:40AngularJS in Action读书笔记3——走近Services
试着想想这些问题:如果一个controller只关心自己所控制的view页面,那么对于整个application来说,你如何调用想要的function;如果controller从来都不会和其他controller通讯,那controller之间又是如何实现数据共享。有问题,就有解决方案,本章主要讲解如何创建一个简单的service并如何使用它和远端的server通讯。 什么是m
日期 2023-06-12 10:48:40AngularJS in Action读书笔记2——view和controller的那些事儿
今天我们来818《angularjs in action》的第三章controller和view。 1.Big Picture概览图 View是angularjs编译html后呈现出来的,需要编译的是controller中的定义的属性和方法以及directive中定义的指令。 View和controller是独立开来的,他们之间的纽带就是图中间的胶水——scope。Controller负责向
日期 2023-06-12 10:48:40Angular学习笔记
说在前面,根据Angular官方命名,Angular.js主要指版本1.*,Anuglar主要只v2之后的版本,此处的学习笔记主要是最近学习Angular4过程中的一些记录 1、几条技术线:TypeScript、Angular、JavaScript、打包工具、配置 2、投入工程实践应该有梯度,从简单到复杂,逐步应
日期 2023-06-12 10:48:40angular的工具方法笔记(equals, HashKey)
分别是angular脏值检测的工具方法equals和 类HashKey的使用方法 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.
日期 2023-06-12 10:48:40