Links: Github Repo / Live Demo
Angular directive, with recursive support for multiple layers of checkboxes.
Links: Github Repo / Live Demo
Angular directive, with recursive support for multiple layers of checkboxes.
For me the revelation came when I realised that they all work the same way: by running something once, storing the value they get, and then cough up that same stored value when referenced through Dependency Injection.
Could you tell the difference between these four?
$scope.$watch('foo', fn)
$scope.$watch(function() {return $scope.foo}, fn)
$scope.$watch(obj.prop, fn)
$scope.$watch(function() {return obj.prop}, fn)
$(document)
. Other firing of events would depend on the $emit
of scope events.click-elsewhere="show=false"
, and click-elsewhere="fn()"
, thanks to $parse
.I was thinking about it: what purpose should a blog serve?