xuantain's Blog

To Be A Lean Developer!

Khái niệm services trong AngularJS

Đây là bài viết tìm hiểu về khái niệm Services trong AngularJS

Angular Services là gì? Angular Services là những đối tượng singleton, cung cấp các phương thức (method) liên quan đến một chức năng cụ thể, được dùng chung và chỉ được khởi tạo một lần duy nhất tr......

Tìm hiểu về AngularJS Directives (Phần 3)

Bài viết tìm hiểu về AngularJS Directives và cách tạo một Custom Directive - Phần 3 (transclude, compile, link, require, controller, controllerAs).

Cách tạo Custom Directive (tiếp theo)transcludeTransclusion trong Directives Từ “transclusion” là một từ không có nghĩa trong từ điển nhưng định nghĩa về nó có thể tìm thấy trên trang Wikipedia ho......

Tìm hiểu về AngularJS Directives (Phần 2)

Bài viết tìm hiểu về AngularJS Directives và cách tạo một Custom Directive - Phần 2 (replace, scope).

Cách tạo Custom Directive (tiếp theo)replaceReplace nhận giá trị kỉểu boolean, mặc định là false. - True: <span class="red">Thay thế</span> DOM element khai báo directive bằng......

Tìm hiểu về AngularJS Directives (Phần 1)

Bài viết tìm hiểu về AngularJS Directives và cách tạo một Custom Directive - Phần 1 (Directives là gì? Cách tạo custom directive, restrict, template, templateUrl, priority).

Directives là gì?Các thuộc tính, id, class, name, onClick, … của một DOM element được gọi chung là directives. AngularJS sẽ dựa vào những directive đó để đính kèm các chỉ thị hoặc các sự kiện tới D......