• Quickly evolving • Frequently changing • Library “fixes” someEmes break exisEng expectaEons • Old documentaEon is everywhere • It’s conceptually different • Google are bastards prepared by Rick Giner for #AngularMelb
{ setTimeout(funcEon() { $scope.message = “Why won’t this work?”; }, 1000); } prepared by Rick Giner for #AngularMelb Wrap the funcEon in $scope.apply()
= {}; $scope.parentobj.parentproperty = "somevalue"; }); prepared by Rick Giner for #AngularMelb app.controller('ctrlChild', funcEon($scope){ $scope.parentprimiEve = "this will NOT modify the parent" $scope.parentobj.parentproperty = "this WILL modify the parent"; });
injecEon • JavaScript minifiers change these parameters to the shorter idenEfiers • Angular has a minificaEon-friendly version of method injecEon prepared by Rick Giner for #AngularMelb
}); prepared by Rick Giner for #AngularMelb module.service('myservice', [ '$h8p', '$q', funcEon($h8p, $q) { // Using the array syntax to declare dependencies works with minificaEon! }]);
#6210 Which means obj[11] is next to obj[1] and before obj[2] • Cannot use orderBy • Have to use toArray() L • … for now … prepared by Rick Giner for #AngularMelb