随笔分类 -  AngularJS

上一页 1 2 3 4 5 6 7 8 9 10 ··· 12 下一页
摘要:ThengCloakdirective is used to prevent the Angular html template from being briefly displayed by the browser in its raw (uncompiled) form while your a... 阅读全文
posted @ 2014-12-27 02:23 Zhentiw
摘要:If you're in a scenario where you want to disable the auto scrolling, but you want to control the scrolling manually, you can use the anchorscroll ser... 阅读全文
posted @ 2014-12-26 00:26 Zhentiw
摘要:If you want to use controllers, instead of a link function, you can usebindToController. Egghead.io Tutorials angular.module("ap... 阅读全文
posted @ 2014-12-25 20:22 Zhentiw
摘要:By default, Angular provides a lot of debug information on the DOM that's only necessary for tools like Protractor and Batarang. Angular 1.3 allows yo... 阅读全文
posted @ 2014-12-25 20:13 Zhentiw
摘要:Create awrapWithdirective using advanced transclusion techniques.transclude- compile the content of the element and make it available to the directive... 阅读全文
posted @ 2014-12-21 23:43 Zhentiw
摘要:/** * Created by Answer1215 on 12/21/2014. */angular.module('app', []) .controller('FirstCtrl' , function(){ var vm = this; vm.messag... 阅读全文
posted @ 2014-12-21 22:54 Zhentiw
摘要:Safely render arbitrary HTML snippets by using ngSanitize and $sce.By default angularJS consider user's input html is danger, so if you want to displa... 阅读全文
posted @ 2014-12-21 05:11 Zhentiw
摘要:ModelValue and ViewValue: $viewValue: Actual string value in the view. $modelValue: The value in the model that the control is bound to. In Anuglar, i 阅读全文
posted @ 2014-12-20 22:17 Zhentiw
摘要:You can use ngModel in your own directives, but there are a few things you'll need to do to get it working properly.ngModel itself is an directive. If... 阅读全文
posted @ 2014-12-19 05:42 Zhentiw
摘要:Directive can use another directive though 'require' keyword.angular.module('docsTabsExample', []).directive('myTabs', function() { return { restr... 阅读全文
posted @ 2014-12-19 05:21 Zhentiw
摘要:The ui-router library for AngularJS provides the ability to name views within your application. This is useful for dividing up your application into s... 阅读全文
posted @ 2014-12-17 17:03 Zhentiw
摘要:ui-router has the powerful ability to define abstract states, or states that can't be navigated to, but are useful for defining a set of states with s... 阅读全文
posted @ 2014-12-17 03:30 Zhentiw
摘要:Introduce to basic $stateProvider.state() with $stateParams services. Understand how nested router works.Key Value:ng-href="#/list/{{item.name}}".stat... 阅读全文
posted @ 2014-12-16 23:42 Zhentiw
摘要:By default your HTTP requests with the $https service in Angular arenotcached. By setting some options, you can turn caching on./** * Created by Answe... 阅读全文
posted @ 2014-12-15 23:57 Zhentiw
摘要:TimelineLite is a piece of the Greensock TweenMax library that provides the ability to create sequenced animation with very little code or setup.Key v... 阅读全文
posted @ 2014-12-15 17:41 Zhentiw
摘要:Directives have dependencies too, and you can use dependency injection to provide services for your directives to use.Bad: If you want to use in anot... 阅读全文
posted @ 2014-12-13 21:26 Zhentiw
摘要:Mongoose allows you to easily select resources by ID from your MongoDB. This is an important aspect to creating an API.Server.js'use strict';var expre... 阅读全文
posted @ 2014-12-10 06:16 Zhentiw
摘要:Learn how to import data into your MongoDB and then use Express to serve a simple Node.js API.Import data into MongoDB:For exmaple, you have an data.j... 阅读全文
posted @ 2014-12-10 04:23 Zhentiw
摘要:Angular overrides quite a few existing HTML elements and attributes. This can be a useful technique in our own applications. We will build a directive... 阅读全文
posted @ 2014-12-09 01:30 Zhentiw
摘要:Using the Chrome console, you can access your AngularJS injectable services. This is down and dirty debugging, and can be a lifesaver in troubling tim... 阅读全文
posted @ 2014-11-30 04:35 Zhentiw

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