Commit graph

24 commits

Author SHA1 Message Date
Misko Hevery
d9abfe8a7e Introduced injector and $new to scope, and injection into link methods and controllers
- added angular.injector(scope, services, instanceCache) which returns inject
    - inject method can return, instance, or call function which have $inject
      property
    - initialize services with $creation=[eager|eager-publish] this means that
      only some of the services are now globally accessible
  - upgraded $become on scope to use injector hence respect the $inject property
    for injection
    - $become should not be run multiple times and will most likely be removed
      in future version
  - added $new on scope to create a child scope
     - $inject is respected on constructor function
  - simplified scopes so that they no longer have separate __proto__ for
    parent, api, behavior and instance this should speed up execution since
    scope will now create one __proto__ chain per scope (not three).

BACKWARD COMPATIBILITY WARNING:
  - services now need to have $inject instead of inject property for proper
    injection this breaks backward compatibility
  - not all services are now published into root scope
    (only: $location, $cookie, $window)
  - if you have widget/directive which uses services on scope
    (such as this.$xhr), you will now have to inject that service in
    (as it is not published on the root scope anymore)
2010-10-12 16:33:06 -07:00
Igor Minar
fbfd160316 adding :package task to the rake file 2010-10-12 16:28:46 -07:00
Misko Hevery
27868f17de cleanup underscore.js form rakefile 2010-09-23 13:53:38 +02:00
Misko Hevery
0649009624 Refactored the Browser:
- change from using prototype to inner functions to help with better compression
  - removed watchers (url/cookie) and introduced a poller concept
  - moved the checking of URL and cookie into services which register with poolers
Benefits:
  - Smaller minified file
  - can call $browser.poll() from tests to simulate polling
  - single place where setTimeout needs to be tested
  - More testable $browser
2010-09-22 16:17:44 +02:00
Misko Hevery
91104f878d add ftp script to auto deploy to angularjs.org 2010-08-14 11:03:36 -07:00
Misko Hevery
412f05977c removed google charts and few other filters, switched to simple optimization for compiler 2010-08-11 11:21:03 -07:00
Andres Ornelas
643b43ffe5 Added new files to Rakefile and consistently used .addFuture 2010-08-05 15:44:54 -07:00
Misko Hevery
00bb790392 fixed IE tests 2010-07-08 15:55:00 -07:00
Misko Hevery
fa0702bad1 change order of initialization 2010-05-28 10:32:03 -07:00
Andres Ornelas
cb5d211927 extracted switchRouteMatcher and added necessary libraries to angular-scenario 2010-05-27 11:26:23 -07:00
Misko Hevery
5992e81b2e added rake task to create a single file for scenario runner 2010-05-25 14:23:52 -07:00
Misko Hevery
0df93fd49c clean up, fixes for app 2010-04-07 10:17:15 -07:00
Misko Hevery
c655b884e2 tests broken, but bootstrap works 2010-03-29 10:40:57 -07:00
Misko Hevery
3d36942400 merge 2010-03-24 12:08:48 -07:00
Misko Hevery
fd72031e96 work in progress 2010-03-24 12:08:09 -07:00
Shyam Seshadri
563a98e4bd Fix rakefile to work with older versions of rake 2010-03-24 10:50:02 -07:00
Adam Abrons
2df072e3f8 twitter using resources 2010-03-16 14:38:56 -07:00
Misko Hevery
a9c182764b added formatters 2010-01-28 22:11:01 -08:00
Adam Abrons
88384854c2 add default rake task (compile and test), send database name to login 2010-01-26 11:27:50 -08:00
Misko Hevery
595b4ea097 checkpoint for integration with angular 2010-01-18 10:47:03 -08:00
Misko Hevery
1aba6b53b8 basic calculator works with minified.js, lots of references still broken 2010-01-10 08:58:57 -08:00
Misko Hevery
9b9a0dadcc removed nglr namespace 2010-01-09 15:02:43 -08:00
Misko Hevery
eb9e66f480 cleanup 2010-01-09 13:21:24 -08:00
Adam Abrons
c9c176a53b angular.js 2010-01-05 16:36:58 -08:00