随笔分类 -  AngularJS

上一页 1 ··· 6 7 8 9 10 11 12 下一页
摘要:功能》点击title, 可以切换Content的显示/隐藏 templateCache This is content : {{zippy.content}} var app = angular.module("app... 阅读全文
posted @ 2014-08-24 21:02 Zhentiw
摘要:1. In controller, instead of set funciton to scope, we can set function or atts to this.And then return $scope.ControllerName = this;2. Organization a... 阅读全文
posted @ 2014-08-24 05:26 Zhentiw
摘要:var app = angular.module("phoneApp", []);app.controller("AppCtrl", function($scope) {});app.directive("panel", function() { return { restric... 阅读全文
posted @ 2014-08-24 05:05 Zhentiw
摘要:Angular Scope & Click me! var app = angular.module("phoneApp", []);app.controller("AppCtrl", function($scope) { t... 阅读全文
posted @ 2014-08-23 23:45 Zhentiw
摘要:Angular.js Example First name: Last name: Hello {{firstName}} {{lastName}} Those pieces is outside angular wor... 阅读全文
posted @ 2014-08-19 14:20 Zhentiw
摘要:Angular Directive var app = angular.module("photoApp", []);app.controller("... 阅读全文
posted @ 2014-08-17 19:10 Zhentiw
摘要:Angular Directive Ctrl Dir ... 阅读全文
posted @ 2014-08-14 17:15 Zhentiw
摘要:var app = angular.module("drinkApp", []);/** scope:{flavor: "@"} has the same affect as link: function(scope, element, attrs){ scope.flav... 阅读全文
posted @ 2014-08-14 16:51 Zhentiw
摘要:For have a better understand of Isolate Scope and the notation in scope:{}, we see an example:HTML: Angular Directive ... 阅读全文
posted @ 2014-08-14 15:17 Zhentiw
摘要:This demo shows that three directive 'require' from another directive. Angular Directive Superm... 阅读全文
posted @ 2014-08-14 03:24 Zhentiw
摘要:Angular Directive Roll over to load more twitters var app = angular.module("... 阅读全文
posted @ 2014-08-12 19:00 Zhentiw
摘要:Angular Directive I'm content! app.directive('enter', function(){ return function(scope, elem... 阅读全文
posted @ 2014-08-12 17:30 Zhentiw
摘要:Directive://Element directiveapp.directive('superman', function(){ return { restrict: "E", template: "Here I am to save the world!", ... 阅读全文
posted @ 2014-08-12 17:12 Zhentiw
摘要:Angular Binding {{msg.message}} ... 阅读全文
posted @ 2014-08-11 18:38 Zhentiw
摘要:HTML: Call the funciton on the scope and give the data as param. Angular Binding --> ... 阅读全文
posted @ 2014-08-11 16:07 Zhentiw
摘要:binding: 通常可以使用ng-model来做绑定!Scope作用域: Angular Binding --> {{data.message}} ... 阅读全文
posted @ 2014-08-10 19:57 Zhentiw
摘要:In product.js we have an directive like: app.directive("productReviews", function() { return { restrict: 'E', scope:{ reviewdProd... 阅读全文
posted @ 2014-08-01 17:26 Zhentiw
摘要:We can use this built in $http Service to make requests to a server(or in our case a json file). Give our StoreController access to the products using... 阅读全文
posted @ 2014-07-28 04:52 Zhentiw
摘要:After that we will need a way to encapusulate our directives in order to give our app access to them. We can use a module to do this! It is time for M... 阅读全文
posted @ 2014-07-28 04:24 Zhentiw

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