Reference from: http://odetocode.com/blogs/scott/archive/2014/10/16/working-with-validators-and-messages-in-angularjs.aspx — Here are a few points about form validation: When you give a <form> a name, Angular will add a property with the same name to the current $scope. All named inputs inside a named <form> will be added to the form’s named property in $scope. Each form and […]

1,609 total views, 2 views today

Reference from: https://toddmotto.com/all-about-angulars-emit-broadcast-on-publish-subscribing/ — Angular’s $emit, $broadcast and $on fall under the common “publish/subscribe” design pattern, or can do, in which you’d publish an event and subscribe/unsubscribe to it somewhere else. The Angular event system is brilliant, it makes things flawless and easy to do (as you’d expect!) but the concept […]

1,307 total views, 2 views today

Reference from: https://www.facebook.com/notes/h%E1%BB%93ng-ph%C3%B9ng-ph%C3%A1t/t%C3%ACm-hi%E1%BB%83u-chung-v%E1%BB%81-transclude-trong-angularjs-1x/1285652024779277 — Bài viết chỉ đơn giản thuật lại những gì mình bị vướng và muốn đào sâu 1 chút về transclude. Lược dịch từ: http://angular-tips.com/blog/2014/0… Giới thiệu Tranclude theo mình là 1 chủ để hơi khó (chắc là với mình) trong Angularjs. Thông thường, 1 directive nếu không […]

1,707 total views, 2 views today

Một trong những khó khăn cho những ai mới làm quen với AngularJS đó là vấn đề sử dụng new isolate/isolated scope (scope: {…}) của directive. Đối với vấn đề sử dụng loại {scope: true} hoặc {scope: false}, các bạn có thể đọc bài sau để hiểu rõ hơn: Understanding […]

1,418 total views, no views today

Reference from: http://chariotsolutions.com/blog/post/angularjs-corner-using-promises-q-handle-asynchronous-calls/ — The AngularJS $q service is said to be inspired by Chris Kowal’s Q library (github.com/kriskowal/q). The library’s goal is to allow users to monitor asynchronous progress by providing a “promise” as a return from a call. In AngularJS, the semantics of using a promise are: var promise […]

1,459 total views, no views today

Reference from: http://ilikekillnerds.com/2014/11/constants-values-global-variables-in-angularjs-the-right-way/ — The subject of global variables in most languages is enough to bring the most passionate code junkies out of the woodwork ready to debate and bite off your feet for even entertaining the thought. The reality is in a framework like AngularJS globals are warranted at times, […]

1,402 total views, no views today

Reference from: https://github.com/angular/angular.js/wiki/Understanding-Scopes — Executive Summary: In AngularJS, a child scope normally prototypically inherits from its parent scope. One exception to this rule is a directive that uses scope: { … } — this creates an “isolate” scope that does not prototypically inherit.(and directive with transclusion) This construct is often used […]

1,545 total views, no views today

Reference from: https://www.codetutorial.io/loopback-and-angularjs-first-tutorial/ — Loopback is one of the most promising Node Js framework based on Express and maintained fromStrongloop a nice startup based in San Mateo and recently acquired by IBM.  Strongloop andLoopback are enterprise grade framework for web and mobile application developed on NodeJS and based on Express. In this tutorial we will […]

1,427 total views, no views today