$scope.$watch('checkboxGroup', function(data){
// compact array as unchecked will add null
// change expression to true or false based checked values.
});
2. View inlining
Custom build task to inline views
A whole lotta script tags
put inside $templateCache at build
Part of lower level $cacheFactory
3. $digest issues a.k.a Angular reflux
$cookieStore and Set-Cookie Header
$digest wouldn't run use $timeout for nextTick
Make ng-repeaters dumb
Do data transforms on return of $resource or $http
e.g. dont do this "date | shortDate"
use $filter instead directly.
4. working with partials
ng-include can clean up a view
...but be careful Angular reflux can bite
same origin only
service pulls in partial and inject into container
sk-compile directive to take html and Angularizeā¢