随笔分类 -  AngularJS

上一页 1 2 3 4 5 6 7 8 9 ··· 12 下一页
摘要:Glorious Directives for Our NavigationNoteWrangler navigation has now been broken into two parts: the children —nw-nav-item— and the parent —nw-nav.He... 阅读全文
posted @ 2015-03-09 04:03 Zhentiw 编辑
摘要:The AngularJS $exceptionHandler service allows you to catch and handle unanticipated JavaScript errors in a meaningful way.So when application is unde... 阅读全文
posted @ 2015-03-07 17:31 Zhentiw 编辑
摘要:Using $templateCache for quickly retrieval from the cache after first time used.$templateCache mainly can use two methods:get(id)put(id, "your html co... 阅读全文
posted @ 2015-03-07 17:23 Zhentiw 编辑
摘要:Configurable Bits Need a ProviderWe want to be able to configure thecharacterLengthbeforeTweetableruns. Refactor theTweetablefactory into a provider a... 阅读全文
posted @ 2015-03-05 03:37 Zhentiw 编辑
摘要:Link function is the best spot to do any DOM manipulation or logic functionality for your directive! Normally, we use jQuery and we know that, jQuery ... 阅读全文
posted @ 2015-02-28 16:10 Zhentiw 编辑
摘要:angular.module('NoteWrangler').directive('nwCard', function() { return { restrict: 'E', templateUrl: 'templates/directives/nw-card.html', sc... 阅读全文
posted @ 2015-02-27 23:34 Zhentiw 编辑
摘要:When you use $scope, you can no longer user controllerAs syntax to get the value from the scope.controllerAs:angular.module('SomeController') .dire... 阅读全文
posted @ 2015-02-27 17:50 Zhentiw 编辑
摘要:bindToController is suitable for using when you have the combination of 'controller', 'controllerAs', 'templateUrl';isolated scope is suitable for usi... 阅读全文
posted @ 2015-02-26 14:45 Zhentiw 编辑
摘要:Check out on gitHub, see the example on Demo page, see the document, extension.Mainly, there are three parts consist of Javascript part:form, schema a... 阅读全文
posted @ 2015-01-21 22:06 Zhentiw 编辑
只有注册用户登录后才能阅读该文。
posted @ 2015-01-18 04:04 Zhentiw 编辑
摘要:Sometimes you might need to modify HTTP requests and responses. This could be for a variety of reasons such as adding global logic handling for HTTP e... 阅读全文
posted @ 2015-01-15 06:15 Zhentiw 编辑
摘要:See more: http://toddmotto.com/opinionated-angular-js-styleguide-for-teams/ While the routes are being resolved we want to show the user something to 阅读全文
posted @ 2015-01-14 16:17 Zhentiw 阅读(574) 评论(0) 推荐(0) 编辑
摘要:The post we have:http://www.cnblogs.com/Answer1215/p/4185504.htmlgives a breif introduce about bindToController on the directive.Here is a blog about ... 阅读全文
posted @ 2015-01-07 01:33 Zhentiw 编辑
只有注册用户登录后才能阅读该文。
posted @ 2015-01-05 03:43 Zhentiw 编辑
只有注册用户登录后才能阅读该文。
posted @ 2015-01-05 03:27 Zhentiw 编辑
摘要:We'velooked at lazy loading with ocLazyLoadpreviously, but what if we are using ui-router and want to lazy load modules when we change states?angular.... 阅读全文
posted @ 2015-01-04 05:48 Zhentiw 编辑
摘要:With the ocLazyLoad you can load AngularJS modules on demand. This is very handy for runtime loading of Angular modules in large applications. Simple 阅读全文
posted @ 2015-01-04 05:42 Zhentiw 编辑
摘要:Scope resolution of our Angular documents works exactly the same way scope resolution works in plain, old Javascript. The only difference here is that... 阅读全文
posted @ 2015-01-03 04:15 Zhentiw 编辑
摘要:Front-end changes:app.js: Uinsg $resource/** * Created by Answer1215 on 12/9/2014. */'use strict';function MainCtrl(People) { var vm = this; vm.... 阅读全文
posted @ 2014-12-28 04:34 Zhentiw 编辑
摘要:This lesson describes what is really happening when you use the angularfactory and how you can make your factories even more dynamic in creation.This ... 阅读全文
posted @ 2014-12-27 23:43 Zhentiw 编辑

上一页 1 2 3 4 5 6 7 8 9 ··· 12 下一页
点击右上角即可分享
微信分享提示