Now the good news: The next Bay Area meetup will happen on June 12! We hope to see you there. For more details please visit the event page and reserve your spot.
As we inch toward 1.0 we are doing some of the last API cleanups in this release. The breaking changes should be trivial to correct in your code bases, please check out the notes below for more info.
Changes
Features
$timeout: add $timeout service that supersedes $defer
(4511d39c,
#704,
#532)
scope: add event.preventDefault() and event.defaultPrevented
(84542d24)
Bug Fixes
ngRepeat: expose $first, $middle and $last instead of $position
(1d388676,
#912)
jqLite: use the same expando store structure as jQuery
(acf095d1)
$rootScope: infinite digest exception does not clear $$phase
(5989a1ed,
#979)
Breaking Changes
ngRepeat - $position is not exposed in repeater scopes any more
To update, search for /\$position/ and replace it with one of $first, $middle or $last.
(1d388676)
scope event's cancel method was renamed to stopPropagation
The name was corrected in order to align better with DOM terminology.
To update, search for /\.\s*cancel\s*(/ and replace it with .stopPropagation( or
.preventDefault( (or both) depending on what you actually need.
(91db9920)
Deprecation Warnings
$defer service has been deprecated in favor of $timeout service
The $defer service will be removed before 1.0 final, so please migrate your code.
(4511d39c)
This video expands on "Part 1" of the component video tutorial by adding the ability to toggle between an "edit mode" and a "preview mode" in your Markdown component.
Key Takeaways
How to use "transclusion"
When to use a "link function" and when to use a "compile function"
How to access elements inside of your component
The importance of isolate scope
Why you should always use a namespace with your components
In this video, John Lindquist walks through adding new tags to the browser using an AngularJS directive. Here, he uses the Showdown.js library to create a <markdown> tag that lets you write Markdown instead of HTML.
Key Takeaways
AngularJS directives transform HTML as you direct.
You can use directives to define your own elements, attributes, classes, or comment types.
Using the directive's linking function is one method that lets you specify the replacement content.