随笔分类 - AngularJS
摘要:Glorious Directives for Our NavigationNoteWrangler navigation has now been broken into two parts: the children —nw-nav-item— and the parent —nw-nav.He...
阅读全文
摘要:The AngularJS $exceptionHandler service allows you to catch and handle unanticipated JavaScript errors in a meaningful way.So when application is unde...
阅读全文
摘要: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...
阅读全文
摘要:Configurable Bits Need a ProviderWe want to be able to configure thecharacterLengthbeforeTweetableruns. Refactor theTweetablefactory into a provider a...
阅读全文
摘要: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 ...
阅读全文
摘要:angular.module('NoteWrangler').directive('nwCard', function() { return { restrict: 'E', templateUrl: 'templates/directives/nw-card.html', sc...
阅读全文
摘要:When you use $scope, you can no longer user controllerAs syntax to get the value from the scope.controllerAs:angular.module('SomeController') .dire...
阅读全文
摘要:bindToController is suitable for using when you have the combination of 'controller', 'controllerAs', 'templateUrl';isolated scope is suitable for usi...
阅读全文
摘要: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...
阅读全文
只有注册用户登录后才能阅读该文。
摘要: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...
阅读全文
摘要: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
阅读全文
摘要: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 ...
阅读全文
摘要: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....
阅读全文
摘要:With the ocLazyLoad you can load AngularJS modules on demand. This is very handy for runtime loading of Angular modules in large applications. Simple
阅读全文
摘要:Scope resolution of our Angular documents works exactly the same way scope resolution works in plain, old Javascript. The only difference here is that...
阅读全文
摘要:Front-end changes:app.js: Uinsg $resource/** * Created by Answer1215 on 12/9/2014. */'use strict';function MainCtrl(People) { var vm = this; vm....
阅读全文
摘要: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 ...
阅读全文