![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
学习笔记
文章平均质量分 74
baidu_23275727
这个作者很懒,什么都没留下…
展开
-
AngularJs(Part 1)
I am Scope a new scope is created by the ng-controller directive using the Scope.$new() method call. yes , we need to have at least one instance of a scope before creating a new scope! s原创 2014-11-16 17:49:13 · 221 阅读 · 0 评论 -
AngularJS(Part 10)
页面导航 过去,一个URL代表一个页面。但是随着Ajax的兴起,情况发生的很大的变化。不同的内容可以使用同一个URL。这让浏览器中的回退、前进 甚至收藏按钮都失去了作用。而AngularJS提供了一套解决方案能够避免这种情况。 怎么解决,有一个小技巧:浏览器不会因为URL中#符号后面的值改变而重新请求页面。(关于#符号,参见另一博文) 现有如下RESTful的的UR原创 2014-12-10 08:26:12 · 247 阅读 · 0 评论 -
URL中#符号的作用
转自http://blog.sina.com.cn/s/blog_6f9eb2dd0100sk97.html 一、#的涵义 #代表网页中的一个位置。其右面的字符,就是该位置的标识符。比如, http://www.example.com/index.html#print 就代表网页index.html的print位置。浏览器读取这个URL后,会自动将pr转载 2014-12-10 08:19:03 · 402 阅读 · 0 评论 -
AngularJs(Part 5)
Communicating with a Back-end Server. for AngularJs, there is a general purpossst $http service for issuing XHR and JSONP calls as well as a specialized $resource service to targe RESTful endpoint原创 2014-12-05 10:07:26 · 261 阅读 · 0 评论 -
AngularJs(Part 6)
Overcomming same-origin policy restrictions with JSONP. AJAX has a restriction that it can only retrieve data from the same resource. There are several techniques for accessing dta exposed by extern原创 2014-12-05 10:08:27 · 214 阅读 · 0 评论 -
AngularJs(Part 7)
Directives In AngularJS, we can use a variety of naming conventions to reference directives . In the AngularJS documentation, all the directive are indexed under their camel-case name (For example,原创 2014-12-05 10:09:54 · 272 阅读 · 0 评论 -
AngularJs(Part 3)
Modules the "founding father" of angular think the global-defined controller is ugly. so they provide some APIs in Angular to declare those controllers. angular.module('hello',[]) .controller(原创 2014-11-16 17:53:58 · 241 阅读 · 0 评论 -
AngularJs(Part 2)
View after a browser is done transforming the arkup's text to the DOM tree. the AngularJs kicks in and traverses the parsed DOM structure. each time it encounters a directive, AngularJs executes原创 2014-11-16 17:51:22 · 267 阅读 · 0 评论 -
AngularJs(Part 4)
Modules depending on other Modules Angular does an excellent job of managing object dependencies. it can even take care of module dependencies. So we can easily group releated services into one modu原创 2014-11-16 17:54:11 · 220 阅读 · 0 评论 -
AngularJs(Part 9)
AngularJS 表单 AngularJS使用了MVX的结构,我们可以是传统的表单更加强大。比如过去我们得自己写一大堆验证,比过过去我们得自己转换用户的输入, 现在这些工作全部可以交给AngularJS. 我们唯一要关心的就是model中的值。 在AngularJS中 ,form和input其实也是directive。(是不是很奇怪!) 这两个家伙就是传统form的加强版。原创 2014-12-08 19:08:44 · 253 阅读 · 0 评论