build-your-own-angularjs
build-your-own-angularjs copied to clipboard
Source Code & Errata for the "Build Your Own AngularJS" book. http://teropa.info/build-your-own-angular
Change This kind of file organization is going **go** get difficult to track at some point, because it’s difficult to know where things come from. to This kind of file...
if (this.$root.$$applyAsyncId) { clearTimeout(this.$root.$$applyAsyncId); // this line has been changed so it should have yellowish background
Scope.prototype.$applyAsync = function(expr) { var self = this; self.$$applyAsyncQueue.push(function() { self.$eval(expr); }); }; // instead of });
book p199 ended up the parsing numbers part. But how about the following test case: ``` it('can parse plus number', function() { var fn = parse('+2'); expect(fn()).toBe(2); }); ``` I...
``` it('will not parse invalid scientific notation', function () { expect(function () { parse('42e'); }).toThrow(); }); ``` The test above fails wherares the angular $parser works properly with this and...
> Notice that we didn’t really have to do anything to make the adoption of foreign Promises work. That’s because our then implementation already knows how to wrap a foreign...
hi which ide you use in scotlandjs? it awesome! 
All the download links in the book point to the previous chapter. For example the link for chapter 10 points to the download link for chapter 9
lodash has changed from _.any to _.some `function isAllDefined(val) { return !_.any(val, _.isUndefined); }` should be `function isAllDefined(val) { return !_.some(val, _.isUndefined); }`