Re-implemented scope based on AngularJS version.
v0.1.0