随笔分类 -  AngularJS

上一页 1 ··· 3 4 5 6 7 8 9 10 11 12 下一页
摘要:Using Angular, you can actually access the scope and other things from the console, so when you have a live web page, you can dive in and grab things ... 阅读全文
posted @ 2014-11-29 22:58 Zhentiw
摘要:Access Data From HTML {{todo.item}} /** * Created by Answer1215 on 11/29/2014. */function ToDoServices($q, $timeout) { var ToDoServic... 阅读全文
posted @ 2014-11-29 22:34 Zhentiw
摘要:This function that we just set up is what's called a link function, and it's actually a very small part of a larger API. If I cut this and instead I r... 阅读全文
posted @ 2014-11-29 07:02 Zhentiw
摘要:With Angular scopes, you have access to a$destroyevent that can be used to watch $scope events. This is used for cleanup, and gives you a final opport... 阅读全文
posted @ 2014-11-29 06:54 Zhentiw
摘要:AngularJS animations and TweenLite make it really easy to create cool 3d effects in your application. Hello Greensock! ... 阅读全文
posted @ 2014-11-27 17:27 Zhentiw
摘要:There are situations where you might want to add additional methods toangular.module. This is easy to accomplish, and can be a handy technique. //F... 阅读全文
posted @ 2014-11-27 16:55 Zhentiw
摘要:Annotation Order:It's considered good practice to dependency inject Angular's providers in before our own custom ones.Bad:// randomly ordered dependen... 阅读全文
posted @ 2014-11-25 17:11 Zhentiw
摘要:Module definitionsAngular modules can be declared in various ways, either stored in a variable or using the getter syntax. Use the getter syntax at al... 阅读全文
posted @ 2014-11-25 17:03 Zhentiw
摘要:Services:Services are instantiated and should be class-like also and reference thethiskeyword, keep function style consistent with everything else.Goo... 阅读全文
posted @ 2014-11-25 16:50 Zhentiw
摘要:ControllerAs:Use thecontrollerAssyntax always as it aids in nested scoping and controller instance reference.Bad: {{ someObject }}Good: {{ main.some... 阅读全文
posted @ 2014-11-25 16:40 Zhentiw
摘要:Also read:http://www.cnblogs.com/Answer1215/p/3941966.htmlUsing ngAnimate://!annotate="YourApp" Your AngularJS Module|Replace this or ngModule with th... 阅读全文
posted @ 2014-11-24 21:55 Zhentiw
摘要:$intervalprovides an excellent service for timed operations in your AngularJS apps. It has the advantage over setInterval in "normal" Javascript in th... 阅读全文
posted @ 2014-11-22 06:49 Zhentiw
摘要:When you minify your code with a tool like Uglify, the resulting minified file will rename variables. This is a problem for AngualrJS, which uses para... 阅读全文
posted @ 2014-11-18 17:47 Zhentiw
摘要:getterSetter: boolean value which determines whether or not to treat functions bound to ngModel as getters/setters to have greater control over your m... 阅读全文
posted @ 2014-11-15 18:23 Zhentiw
摘要:This is an highlight about ngAira in Angular Document abou ngAiraWhere can use ngAria?Currently, ngAria interfaces with the following directives:ngMod... 阅读全文
posted @ 2014-11-14 22:00 Zhentiw
摘要:Accessibility is an often overlookedessentialfeature of a web application. a11y Is a critical component of your AngularJS application. It should be co... 阅读全文
posted @ 2014-11-14 21:24 Zhentiw
摘要:AngularJS 1.3 ng-model-options Some input: SubmitBound value: Field Error State: {{myForm.myField.$error | json... 阅读全文
posted @ 2014-11-14 04:17 Zhentiw
摘要:new $q constructor Reject it Resolve it Last Resolved Value {{vm.resolveData | json}} Last Rejected Value {{vm.reje... 阅读全文
posted @ 2014-11-13 22:54 Zhentiw
摘要:Password --------------------------------- //ngChange $scope.onChange=function(){ var newVal =... 阅读全文
posted @ 2014-11-13 18:17 Zhentiw
摘要:$watchGroup can monitor an array or expression.We watch both email and password by using the same callback function. $scope.$watchGroup(['user.emai... 阅读全文
posted @ 2014-11-13 18:08 Zhentiw

上一页 1 ··· 3 4 5 6 7 8 9 10 11 12 下一页