Skip to content

Commit abb80d0

Browse files
committed
Update chain of responsibilities
1 parent 61bb94b commit abb80d0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,7 @@ Few sample AngularJS expressions are:
560560
(foo) ? bar : baz | toUpperCase
561561
```
562562

563-
### Observer (publish/subscribe)
563+
### Observer
564564

565565
>The observer pattern is a software design pattern in which an object, called the subject, maintains a list of its dependents, called observers, and notifies them automatically of any state changes, usually by calling one of their methods. It is mainly used to implement distributed event handling systems.
566566
@@ -629,6 +629,8 @@ myModule.controller('ChildCtrl', function ($scope) {
629629
});
630630
```
631631

632+
The different handlers from the UML diagram above are the different scopes, injected to the controllers.
633+
632634
### Active Record
633635

634636
>The Active Record object is an object, which carries both data and behavior. Usually most of the data in these objects is persistent, responsibility of the Active Record object is to take care of the communication with the database in order to create, update, retrieve or delete the data. It may delegate this responsibility to lower level objects but calls to instance or static methods of the active record object cause the database communication.

0 commit comments

Comments
 (0)