Misko Hevery
cae9ad4ba9
docs(decorator): add missing decorate docs
2012-02-21 22:45:59 -08:00
Misko Hevery
85b2084f57
fix(select): double array issue with multislect and jQuery
2012-02-21 22:45:59 -08:00
Misko Hevery
13b21aaf5a
fix(doc): example was referring to non existent CSS
2012-02-21 22:45:59 -08:00
Vojta Jina
6e635012fb
feat(scope): scope.$emit/$broadcast return the event object, add cancelled property
2012-02-21 10:58:48 -08:00
Misko Hevery
eb92735c9e
fix(injector) .instantiate([Type]) produced wrong result
2012-02-16 14:32:52 -08:00
Vojta Jina
776739299b
fix($injector): instantiate returns instance, if non-object value returned from constructor
2012-02-08 16:12:11 -08:00
Vojta Jina
3173d8603d
fix(jqLite): fix memory leaking in IE8 (remove monkey patched methods on Event)
...
These methods cause IE8 holds the whole jqLite in the memory, even when page is reloaded.
jqLite's cache keeps element's data (event handlers, attached scopes, injector, etc…), so almost all used memory is never released in IE8.
jQuery creates its own Event object (wrapper around native Event) instead.
2012-02-05 00:09:02 -08:00
Igor Minar
8b32900d72
fix($parse): simplify getterFn
2012-01-25 16:52:39 -08:00
Igor Minar
18a1e860a3
fix($parse): small fixes
...
- typos
- dead code removal
- remove unneeded variable
2012-01-25 16:17:44 -08:00
Igor Minar
39b3297fc3
fix($parse): get rid of $unboundFn
...
Closes #731
2012-01-25 16:17:43 -08:00
Misko Hevery
1268fc1a44
cleanup($scope): remove $$scope ref.
2012-01-25 11:54:00 -08:00
Misko Hevery
4804c83b7d
docs(compiler): update the compiler docs
2012-01-25 11:53:59 -08:00
Misko Hevery
e2b1d9e994
feat(scriptTemplateLoader): provide template inlining
...
populates $templateCache with content of ng-template scripts
2012-01-25 11:50:37 -08:00
Misko Hevery
9ee2cdff44
refactor(directives): connect new compiler
...
- turn everything into a directive
2012-01-25 11:50:37 -08:00
Misko Hevery
8af4fde182
add($compile): add compiler v2.0 - not connected
2012-01-25 11:46:36 -08:00
Misko Hevery
5001c1a121
refactor($interpolate): improve interpolation service add documentation
2012-01-25 11:46:36 -08:00
Misko Hevery
0f6b2ef982
refactor(sanitizer): turn sanitizer into a service
2012-01-25 11:46:35 -08:00
Igor Minar
1e96d0af8c
fix(injector): small perf improvement & code cleanup
2012-01-25 11:46:35 -08:00
Misko Hevery
97dae0d0a0
feat(jqLite): add contents()
2012-01-25 11:46:35 -08:00
Misko Hevery
84823b2eff
feature($exceptionHandler): $exceptionHandler now supports var_args
2012-01-25 11:46:34 -08:00
Kai Groner
56bcc04c54
feat(ng:class): support using map of classnames and conditions
...
enables <div ng:class="{'hide': !visible, 'warning': isAlert()}"...
2012-01-24 10:28:29 -08:00
Igor Minar
b2052d08a1
fix($parse): fixing typos in JS_KEYWORDS
2012-01-23 22:33:28 -08:00
Igor Minar
7da2bdb82a
fix(scope): support watching functions
...
currently we run into infinite digest if a function is being
watched as an expression. This is because we generate bound
function wrapper when the watch is processed via parser.
I'm not too keen on the solution because it relies on the unbound
fn that is being exposed for other reasons, but I can't think
of a better way to deal with this right now
2012-01-23 22:33:28 -08:00
Vojta Jina
dbffbefb7c
refactor($controller): Add $controller service for instantiating controllers
...
So that we can allow user to override this service and use BC hack:
https://gist.github.com/1649788
2012-01-23 13:11:12 -08:00
Vojta Jina
0196411dbe
refactor(scope.$watch): rearrange arguments passed into watcher (newValue, oldValue, scope)
...
As scopes are injected into controllers now, you have the reference anyway, so having scope as first argument makes no sense…
Breaks $watcher gets arguments in different order (newValue, oldValue, scope)
2012-01-23 11:11:27 -08:00
Vojta Jina
992c790f07
refactor(scope): separate controller from scope
...
Controller is standalone object, created using "new" operator, not messed up with scope anymore.
Instead, related scope is injected as $scope.
See design proposal: https://docs.google.com/document/pub?id=1SsgVj17ec6tnZEX3ugsvg0rVVR11wTso5Md-RdEmC0k
Closes #321
Closes #425
Breaks controller methods are not exported to scope automatically
Breaks Scope#$new() does not take controller as argument anymore
2012-01-23 11:05:36 -08:00
alkis
f5343c9fd3
docs($http): fix missing quote
2012-01-22 00:30:39 -08:00
Igor Minar
efe33a5e21
docs($http): doc fixes suggested by Gina
2012-01-19 12:39:05 -08:00
Igor Minar
3f98d6ac99
docs(*): more docs
2012-01-17 12:19:26 -08:00
Konstantin Stepanov
e1e7aca9a6
fix($locationProvider) hashPrefix's getter returned html5Mode + doc fix
2012-01-17 11:21:20 -08:00
Igor Minar
92af30ce6e
docs(*): various doc fixes
2012-01-17 09:49:37 -08:00
Igor Minar
54581d36df
fix(e2e $httpBackend): use browser.defer instead of $defer
...
this is necessary to avoid $apply from within $apply situations
2012-01-16 23:26:44 -08:00
Igor Minar
b587091b6e
feat(jqLite): added injector() helper method
2012-01-16 02:17:27 -08:00
Vojta Jina
c49b8a2db5
fix($location): do not $digest if browser's url change fired within $apply/$digest
...
Chrome (probably other browsers as well) fires 'hashchange' event synchronously, so if you change raw location from within $apply/$digest, we don't want to $apply twice. (It would throw an exception)
2012-01-14 11:23:12 -08:00
Misko Hevery
5cdfe45aa3
feat(module): add runtime block
2012-01-13 14:28:43 -08:00
Igor Minar
16a40c626f
style(*): small fixes
2012-01-13 14:28:21 -08:00
Igor Minar
b7f4d8c3c3
fix($http): anonnymous response interceptors should be treated as factories
2012-01-13 14:28:20 -08:00
Igor Minar
939c8e8fac
docs($http, $httpBackend): docs docs docs
2012-01-13 14:28:20 -08:00
Igor Minar
46691c2721
fix($http): remove support for PATCH + better whenXXX, expectXXX api
...
- there are too many unknowns about PATCH, so I'm dropping its support until we know that this is actually useful
- expectGET, expectHEAD and expectJSON (and the same for whenXXX) should not require response data to be specified
2012-01-13 13:53:07 -08:00
Vojta Jina
15fd735793
refactor($autoScroll): rename to $anchorScroll and allow disabling auto scrolling (links)
...
Now, that we have autoscroll attribute on ng:include, there is no reason to disable the service completely, so $anchorScrollProvider.disableAutoScrolling() means it won't be scrolling when $location.hash() changes.
And then, it's not $autoScroll at all, it actually scrolls to anchor when it's called, so I renamed
it to $anchorScroll.
2012-01-13 01:07:12 -08:00
Vojta Jina
249c89c091
fix($autoScroll): scroll even if $location is in html5 mode
...
+ use autoscroll in docs (ng:include)
2012-01-13 01:01:26 -08:00
Vojta Jina
5164ae545b
style(mocks): remove console.log
2012-01-13 00:37:16 -08:00
Misko Hevery
e1e0ddb910
docs(inject/module): add documentation
2012-01-12 17:10:48 -08:00
Misko Hevery
d648d709f3
refactor(module): strict separation between module-config / app-runtime
2012-01-12 13:40:07 -08:00
Vojta Jina
9a8dbfef51
style(mock): make jslint and igor happier
2012-01-11 22:11:06 -08:00
Vojta Jina
28114de8dc
refactor(mock.$httpBackend): split (e2e/unit testing version of $httpBackend mock)
2012-01-11 22:11:01 -08:00
Vojta Jina
c6ea1be053
fix(mock.$httpBackend): resetExpectations should not create new array
2012-01-11 11:48:03 -08:00
Misko Hevery
5143e7bf06
feat(module): new module loader
2012-01-10 22:27:00 -08:00
Misko Hevery
e0b4b107ee
chore(license): update year
2012-01-10 22:21:54 -08:00
Igor Minar
7146f70636
fix($httpBackend): fix for jsonp requests
2012-01-09 14:38:32 -08:00
Igor Minar
b8960c3710
chore($http): small $http fixes
2012-01-09 13:17:48 -08:00
Igor Minar
67338ce061
feat($http): turn mock backend into a decorator + e2e testing support
...
- provider -> decorator
- autoflush + passThrough mode
- fix noop -> angular.noop
2012-01-09 13:17:48 -08:00
Igor Minar
23f8da7cbb
feat($http): expose req/resp headers to transform fns
2012-01-09 13:17:48 -08:00
Igor Minar
b911e303ec
feat($httpBackend): add expect/when shortcut methods
2012-01-09 13:17:48 -08:00
Igor Minar
a13b5ed3bc
fix($http): fix and cleanup $http and friends
...
$http:
- use promises internally
- get rid of XhrFuture that was previously used internally
- get rid of $browser.defer calls for async stuff (serving from cache),
promises will take care of asynchronicity
- fix transformation bugs (when caching requested + multiple request
pending + error is returned)
- get rid of native header parsing and instead just lazily parse the
header string
$httpBackend:
- don't return raw/mock XMLHttpRequest object (we don't use it for
anything anymore)
- call the callback with response headers string
mock $httpBackend:
- unify response api for expect and when
- call the callback with response headers string
- changed the expect/when failure error message so that EXPECTED and GOT
values are aligned
Conflicts:
src/service/http.js
test/service/compilerSpec.js
test/service/httpSpec.js
2012-01-09 13:17:48 -08:00
Igor Minar
63cca9afbc
feat(browser.defer): flush should throw exception when queue is empty
2012-01-09 13:17:48 -08:00
Vojta Jina
d47ec772c3
docs(fix): select widget name -> ng:model
2012-01-08 15:06:12 -08:00
Vojta Jina
5c19766063
feat(ng:include): enable/disable scrolling through autoscroll attribute
2012-01-07 00:18:22 -08:00
Vojta Jina
f2119c7524
fix($httpBackend): respond 200/404 when on file protocol (fix protocol parsing)
2012-01-06 19:20:29 -08:00
Dhruv Manek
08029c7b72
fix(angular.copy): throw Error if source and destination are identical
...
Closes #693
2012-01-06 12:19:39 -08:00
Igor Minar
0bf611087b
feat(scope): throw exception when recursive $apply
2012-01-06 12:19:39 -08:00
Igor Minar
cd9a7b9608
fix(ng:repeat): support repeating over array with null
...
typeof null == 'object', but it doesn't behave like an object
because its properties can't be dereferenced, so we need
to special-case it.
Closes #702
2012-01-06 12:19:39 -08:00
Igor Minar
9632f5c1c7
style(q): rename src/Deferred.js to src/service/q.js
2012-01-03 17:48:09 -08:00
Igor Minar
bb3be87606
style(q): reorganize the file + drop fallback dependencies
2012-01-03 17:48:09 -08:00
Igor Minar
174952e443
docs(q): documentation for all $q apis
2012-01-03 17:31:23 -08:00
Mark Hansen
50eb7f15b8
docs(scope): fix typo $digest -> $watch
2012-01-03 15:01:34 -08:00
Sean Gilligan
212a6ff29a
docs(resource): fix params for non-get actions
2012-01-03 14:57:38 -08:00
bartes
0c534644bc
fix(input): bind inputs to the 'input' event
...
The input event is fired on all non-ie browsers whenever the contents of an input
field changes. This means that we now support cut&paste via mouse which
was previously unsupported.
IE8 and older don't support this events and IE9 has a problematic
support for it, so we can't rely solely on this event and drop keydown
and change events.
2011-12-07 13:07:20 -08:00
Igor Minar
c28662d28d
fix(filter): remove the $ prefix from filter service ids
2011-12-07 13:07:19 -08:00
Igor Minar
4e3c05b99e
feat(injector): add $provide.decorator
2011-12-07 09:41:08 -08:00
Igor Minar
fd38655e6c
fix(): use angular.callbacks namespace for jsonp callbacks
...
Previously we used to put callbacks on the window object, but that
causes problems on IE8 where it is not possible to delete properties
from the window object
2011-12-07 07:54:09 -08:00
Vojta Jina
b9001e9147
fix(route): $destroy scope after update and reload
...
When we update route (changing only search param, no route reload) and then reload (change to different
route), it did not $destroy last scope.
2011-12-06 13:35:05 -08:00
Igor Minar
d1e7a5394a
docs(form): add docs about form submission
2011-12-06 13:32:49 -08:00
Vojta Jina
2090136dd8
docs(ng:submit): update docs example to not add empty items
2011-12-06 13:07:27 -08:00
Vojta Jina
c9f2b1eec5
feat(form): do not prevent submission if action attribute present
2011-12-06 13:07:26 -08:00
Igor Minar
163e05ed36
feat($http): allow interceptors to be services
2011-12-05 23:53:26 -08:00
Igor Minar
2986a09c0d
fix(jqLite): JQLiteHasClass should work even when minified
...
closure compiler is smarter than we expected and drops the unused fn
argument - this breaks the meta-programing logic of jqLite.
The fix special cases JQLiteHasClass since its the only fn that needs
this treatment in a way that is minification-proof.
2011-12-05 14:12:00 -08:00
Igor Minar
bb2e7488fa
fix($httpBackend mock): getResponseHeader should be case insensitive
2011-12-01 18:21:45 -05:00
Igor Minar
44b2f44f93
fix($resource): forwardport exposing headers from 0.9.19
2011-12-01 16:20:08 -05:00
Igor Minar
1d14760c6d
fix(ng:include): prevent race conditions by ignoring stale http callbacks
...
This fix is similar to what I've done in ng:view, if a new template has been requested before the
callback for the previous template returned, ignore it. Otherwise weird race conditions happen
and users might end up getting the content for the previous include rendered instead of the most
recent one.
2011-11-30 14:49:36 -05:00
Igor Minar
baa7af0df0
docs($location): add docs for the $location.search setter
2011-11-30 14:49:36 -05:00
Igor Minar
f43c226c67
fix(copy,equals): prevent browser crashes with Scope or Window
...
Scope and Window instances are special and when copied can crash browser. For this reason
it makes sense to compare them only by identity.
2011-11-30 14:49:36 -05:00
Misko Hevery
0e1fa2aefe
feat($interpolate): string interpolation function
2011-11-30 14:49:36 -05:00
Igor Minar
3d0ce0ebe9
feat($location): name the watch function to ease debugging
2011-11-30 14:49:36 -05:00
Igor Minar
b00da987a9
scope($digest): add new&old val to the infinite $digest log
2011-11-30 14:49:35 -05:00
Igor Minar
188bdf7768
feat($http): add response interceptors
2011-11-30 14:49:35 -05:00
Igor Minar
dbd880cc0a
feat($http): add promise support
...
quite messy, some tests are missing, contains an experimental jasmine DI support)
2011-11-30 14:49:35 -05:00
Igor Minar
bf8e0540f8
feat(dump): add support for arrays, functions, errors
2011-11-30 14:49:35 -05:00
Igor Minar
78b6e8a446
feat($parse): add support for transparent evaluation of Promises
...
Parser now builds expressions that can detect promises and transparently
evaluate them to undefined or the promise value.
If promiseA is resolved with value 'A', then {{promiseA}} evals to 'A';
If promiseA is unresolved, then {{promiseA}} evals to undefined;
Following invocations are supported:
- {{promise}}
- {{promise.futureProp}}
- {{[promise][0]}}
- {{object.promise}}
- {{object[promise]}}
- {{array[promise]}}
- {{fn(promise)}}
- combinations of the above
2011-11-30 14:49:35 -05:00
Igor Minar
b656552d68
fix(angular-boostrap): add missing jQuery/jqLite binding
2011-11-30 14:49:35 -05:00
Igor Minar
1cdfa3b960
feat(deferreds/promises): Q-like deferred/promise implementation with a ton of specs
2011-11-30 14:49:03 -05:00
Vojta Jina
16363d8000
refactor(ng:view, ng:include): pass cache instance into $http
...
Instead of doing all the stuff in these widgets (checking cache, etc..) we can rely on $http now...
2011-11-30 14:49:03 -05:00
Vojta Jina
92995bbce9
fix($http): default json transformation should not crash on angular template
...
The way we determine whether it's json is lame anyway. We need to change that.
We should probably check the content type header...
2011-11-30 11:17:25 -05:00
Vojta Jina
b9707d910e
style(): get rid off some jsl warnings
2011-11-30 11:17:25 -05:00
Vojta Jina
5bbd64ac65
feat($http): allow passing custom cache instance per request
...
You can still use cache: true, which will use $http's default cache.
2011-11-30 11:17:25 -05:00
Vojta Jina
caeb1bf899
feat($httpBackend): fix 0 status code when "file" protocol
...
Browsers return always 0 status code for "file" protocol, so we convert them into 200/404.
2011-11-30 11:17:24 -05:00
Vojta Jina
9b4efa73f9
feat(mock.$httpBackend): say which request was expected when unexpected request error
2011-11-30 11:17:24 -05:00
Vojta Jina
4aaa2f7f6b
feat(mock.$httpBackend): verify expectations after flush()
2011-11-30 11:17:24 -05:00
Vojta Jina
6290bd4587
refactor(mock.$httpBackend): rename when().then() to when().respond()
2011-11-30 11:17:24 -05:00
Vojta Jina
e9f81b6631
fix(mock.$httpBackend): flush() even requests sent during callbacks
2011-11-30 11:17:23 -05:00
Vojta Jina
afbe073121
feat(mock.$httpBackend): add verifyNoOutstandingRequest method
...
+ rename verifyExpectations to verifyNoOutstandingExpectation
2011-11-30 11:17:23 -05:00
Vojta Jina
7b705df2b7
feat($http): broadcast $http.request event
2011-11-30 11:17:23 -05:00
Vojta Jina
a4c8ac7126
feat(mock.$httpBackend): throw when nothing to flush, dump data/headers when expected different
2011-11-30 11:17:23 -05:00
Vojta Jina
e3e2e4436e
fix($http): add .send() alias for .retry() to get better stack trace on error
2011-11-30 11:17:22 -05:00
Vojta Jina
972c3e9be0
refactor($http): change callback matching mechanism
2011-11-30 11:17:22 -05:00
Vojta Jina
feacf608ee
fix($resource): to work with $http, $httpBackend services
...
Breaks Disabling $resource caching for the moment.
2011-11-30 11:17:22 -05:00
Vojta Jina
fe633dd0cf
fix($http): allow multiple json vulnerability prefixes
...
We strip out both:
)]}',
)]}'
2011-11-30 11:17:22 -05:00
Vojta Jina
fdcc2dbfd3
feat($http): expose pendingRequests and configuration object
...
- $http.pendingRequests is now an array of pending requests
- each request (its future object) has public property configuration
2011-11-30 11:17:22 -05:00
Vojta Jina
5ad0c7d0e4
feat($httpBackend): extract $browser.xhr into separate service
...
- remove whole $browser.xhr stuff
- remove whole mock $browser.xhr stuff
- add $httpBackend service + migrate unit tests from $browser
- add temporary API to access $browser's outstandingRequests count
2011-11-30 11:17:22 -05:00
Vojta Jina
540701a8d8
feat(mocks.$browser): add simple addJs() method into $browser mock
2011-11-30 11:17:22 -05:00
Vojta Jina
4d2d70e7fb
feat($templateCache): add $templateCache - shared by ng:include, ng:view
2011-11-30 11:17:21 -05:00
Vojta Jina
cd28a2e952
feat(mocks.$httpBackend): add $httpBackend mock
...
$httpBackend mock allows:
- expecting (asserting) requests
- stubbing (responding without asserting)
Add empty $httpBackend service (currently just wrapper for $browser.xhr)
2011-11-30 11:12:14 -05:00
Vojta Jina
59adadca08
feat($http): new $http service, removing $xhr.*
...
Features:
- aborting requests
- more flexible callbacks (per status code)
- custom request headers (per request)
- access to response headers
- custom transform functions (both request, response)
- caching
- shortcut methods (get, head, post, put, delete, patch, jsonp)
- exposing pendingCount()
- setting timeout
Breaks Renaming $xhr to $http
Breaks Takes one parameter now - configuration object
Breaks $xhr.cache removed - use configuration cache: true instead
Breaks $xhr.error, $xhr.bulk removed
Breaks Callback functions get parameters: response, status, headers
Closes #38
Closes #80
Closes #180
Closes #299
Closes #342
Closes #395
Closes #413
Closes #414
Closes #507
2011-11-30 11:12:14 -05:00
Igor Minar
497839f583
feat($cacheFactory): add general purpose $cacheFactory service
2011-11-30 11:03:42 -05:00
Vojta Jina
5487bdb3d1
feat($browser.xhr): add timeout option to abort request
...
Timeouted request responds internal status code -1, which should be normalized
into 0 by $xhr.
2011-11-30 11:03:42 -05:00
Vojta Jina
3ae3ccf3da
fix($browser.xhr): fix IE6, IE7 bug - sync xhr when serving from cache
...
IE6, IE7 is sync when serving content from cache.
We want consistent api, so we have to use setTimeout to make it async.
2011-11-30 11:03:42 -05:00
Vojta Jina
e9b57f9df8
fix($browser.xhr): respond with internal -2 status on jsonp error
...
If jsonp is not successfull, we return internal status -2.
This internal status should by normalized by $xhr into 0,
but $xhr needs to distinguish between jsonp-error/abort/timeout (all status 0).
2011-11-30 11:03:42 -05:00
Vojta Jina
45f47ff6cd
fix($browser.xhr): change method "JSON" to "JSONP"
...
Breaks "JSON" xhr method is now called "JSONP"
2011-11-30 11:03:41 -05:00
Vojta Jina
0c8b35681e
feat($browser): xhr returns raw request object
2011-11-30 11:03:41 -05:00
Vojta Jina
3548fe3139
feat(service.$autoScroll): scroll to hash fragment
...
- whenever hash part of the url changes
- after ng:view / ng:include load
2011-11-21 17:49:49 -08:00
Codier
29f9e2665d
fix(scope): $watch (and angular.equals) should support NaN values
...
- since NaN !== NaN in javascript digest can get into an infinite loop
when model value is set to NaN
- angular.equals(NaN, NaN) should return true since that's what we
expect when comparing primitives or objects containing NaN values
Previously NaN because of its special === properties was used as the
initial value for watches, but that results in issues when NaN is used
as model value.
In order to allow for model to be anything incuding undefined and NaN we
need to mark the initial value differently in a way that would avoid
these issues, allow us to run digest without major perf penalties and
allow for clients to determine if the listener is being called because
the watcher is being initialized or because the model changed. This
implementation covers all of these scenarios.
BREAKING CHANGE: previously to detect if the listener was called because
the watcher was being initialized, it was suggested that clients check
if old value is NaN. With this change, the check should be if the newVal
equals the oldVal.
Closes #657
2011-11-21 15:43:12 -08:00
TEHEK Firefox
3e1a6688c3
chore(browser): rename Browser.js -> browser.js, BrowserSpec.js -> browserSpec.js
...
And move them to proper service subfolder...
2011-11-18 12:05:55 -08:00
Misko Hevery
aba9bb2a24
fix(input): treat all not number model as blank
2011-11-15 11:47:23 -08:00
Misko Hevery
5857c44e0c
fix(radio): fix binding to value={{exp}}
2011-11-15 11:44:36 -08:00
Misko Hevery
8adae2fdf2
refactor(injector): removed loadModule/ng:module
...
- added module property to doc:example
2011-11-14 20:31:21 -08:00
Misko Hevery
955551141d
style(angularPublic): move public export definition to AnuglarPublic.js
2011-11-14 20:31:21 -08:00
Misko Hevery
94e1a07b28
doc(rename): NG_LOCALE -> ngLocale
2011-11-14 20:31:20 -08:00
Misko Hevery
e88dfb734a
refactor(injector): $injector is no longer a function.
...
- $injector('abc') -> $injector.get('abc');
- $injector(fn) -> $injector.invoke(null, fn);
2011-11-14 20:31:19 -08:00
Misko Hevery
8d6dc0b9a7
del($eager): removed the support for $eager services
2011-11-14 20:31:19 -08:00
Vojta Jina
acbd7cdf32
style(docs): make jslint happy - fix some warnings
2011-11-14 20:31:19 -08:00
Misko Hevery
186a840cd3
feat(bootstrap): added angular.bootstrap method
2011-11-14 20:31:18 -08:00
Misko Hevery
b09595a3c1
fix(doc) cleanup all api doc link warnings
2011-11-14 20:31:18 -08:00
Vojta Jina
5279de0e70
fix($location): links without path segment should not change the path
...
Closes #648
2011-11-14 20:31:17 -08:00
Misko Hevery
1cc6bee4ce
docs(browser): moved and migrate browser removed unneeded files.
2011-11-14 20:31:17 -08:00
Misko Hevery
a8aa193c6b
doc($rootScope): scope documentation changes
2011-11-14 20:31:17 -08:00
Misko Hevery
e45b013143
doc(locale): migrate docs to new format
2011-11-14 20:31:16 -08:00
Misko Hevery
ea18f4548d
doc($formFactory): migrated the $formFactory documentation
2011-11-14 20:31:16 -08:00
Misko Hevery
57c37a21d1
doc(service): update docs for the moved services
2011-11-14 20:31:16 -08:00
Misko Hevery
74fac45f48
doc($filter): added $filter documentation
2011-11-14 20:31:16 -08:00
Misko Hevery
f0fa5e6376
doc(AUTO, NG_MOCK): Documenting the AUTO and NG_MOCK module
2011-11-14 20:31:16 -08:00
Misko Hevery
c283bf6035
refactor($location): merged $locationConfig service into $locationProvider
2011-11-14 20:31:15 -08:00
Misko Hevery
b3c17f3fdc
chore(scope): remove $service
2011-11-14 20:31:15 -08:00
Misko Hevery
9c06394376
chore(scenario tests): make scenario tests pass again
2011-11-14 20:31:15 -08:00
Misko Hevery
085e3c611f
new(directive): added ng:module directive for loading modules
2011-11-14 20:31:15 -08:00
Misko Hevery
4b35a59c6a
refactor(scenario): fix scenario bootstrap & publish injector for inspection
2011-11-14 20:31:14 -08:00
Misko Hevery
7cb03c5ab9
chore(angular): clean up unused constants
2011-11-14 20:31:14 -08:00
Misko Hevery
78c7066422
refactor(angular): isDate / isArray test iframe independent fix
2011-11-14 20:31:14 -08:00
Misko Hevery
923da410bd
fix(i18n): updated the way locale is being registered
2011-11-14 20:31:14 -08:00
Misko Hevery
a87f2fb9e4
refactor(mock): moved mocks into its own module
2011-11-14 20:31:14 -08:00
Misko Hevery
c27aba4354
refactor(api): remove type augmentation
...
BREAK:
- remove angular.[Object/Array/String/Function]
- in templates [].$filter(predicate) and friends need to change to [] | filter:predicate
2011-11-14 20:31:14 -08:00
Misko Hevery
dd9151e522
refacter(filters): convert filter/limitTo/orderBy from type augmentation to filters
2011-11-14 20:31:13 -08:00
Misko Hevery
3972d2a89b
refactor(json): break dependence on api.js
2011-11-14 20:31:13 -08:00
Misko Hevery
cb6f832f38
refactor(filter): filters are now injectable and services
...
BREAK:
- removed CSS support from filters
2011-11-14 20:31:09 -08:00
Misko Hevery
6022f3df39
move(filters): appease the History God
2011-11-14 16:39:34 -08:00
Misko Hevery
7c11531902
refactor(parser): turn parser into a service (keep compatibility hack)
2011-11-14 16:39:33 -08:00
Misko Hevery
c6d2549a52
fix(JSON): json date parsing same native/ngular parser
2011-11-14 16:39:33 -08:00
Misko Hevery
bee6060e4b
move(parser): appease the History God
2011-11-14 16:39:33 -08:00
Misko Hevery
16597e8b52
refactor($service): removed almost all references to scope.$service
...
- still need to remove from factory
2011-11-14 16:39:33 -08:00
Misko Hevery
f684f20c99
cleanup(parser): removed unused method
2011-11-14 16:39:33 -08:00
Misko Hevery
bd04316a89
refactor(services): migrate angular.service -> module
2011-11-14 16:39:33 -08:00
Misko Hevery
ed36b9da3b
refactor(injector): switch to injector 2.0 introduce modules
2011-11-14 16:39:32 -08:00
Misko Hevery
c925f8a657
new(injector): new injector v2.0
...
- not connected to keep the CL small
2011-11-14 16:39:32 -08:00
Misko Hevery
4c10d33eb4
refactor(api): cleaned up the externalization of angular API methods
2011-11-14 16:39:32 -08:00
Misko Hevery
9062996a0e
feat(injector): support $inject(fn($service){}) function invocation
2011-11-14 16:39:32 -08:00
Misko Hevery
411c1ae77e
feat(injector): support ['$service', function($service){}] annotations for function invocation.
2011-11-14 16:39:32 -08:00
Misko Hevery
d12df0d360
refactor(compiler) turn compiler into a service
...
BREAK
- remove angular.compile() since the compile method is now a service and needs to be injected
2011-11-14 16:39:32 -08:00
Misko Hevery
d9b58f23f6
move(compiler): appease the History God
...
- renamed: src/Compiler.js -> src/service/compiler.js
- renamed: test/CompilerSpec.js -> test/service/compilerSpec.js
2011-11-14 16:39:32 -08:00
Misko Hevery
03dd8c4f4c
feat(injector): Service look up failures include dependency path
2011-11-14 16:39:32 -08:00
Misko Hevery
48697a2b86
refactor(injector): turn scope into a service
...
- turn scope into a $rootScope service.
- injector is now a starting point for creating angular application.
- added inject() method which wraps jasmine its/beforeEach/afterEach,
and which allows configuration and injection of services.
- refactor tests to use inject() where possible
BREAK:
- removed angular.scope() method
2011-11-14 16:39:31 -08:00
Misko Hevery
93b777c916
move(scope): appease the History God
...
- renamed: src/Scope.js -> src/service/scope.js
- renamed: test/ScopeSpec.js -> test/service/scopeSpec.js
2011-11-14 16:39:31 -08:00
Misko Hevery
fc7834f9ac
cleanup(parser): remove unused method
2011-11-11 13:04:26 -08:00
Igor Minar
1e00db8daa
fix(directives): make directive names case-insensitive
...
+ tests
+ added docs for angular.directive
2011-11-08 21:44:46 -08:00
Dhruv Manek
e2663f62b0
feat(ng:style): compatibility + perf improvements
...
- better compatibility with 3rd party code - we clober 3rd party
style only if it direcrtly collides with 3rd party styles
- better perf since it doesn't execute stuff on every digest
- lots of tests
2011-11-08 02:25:22 -08:00
Igor Minar
9f9ed4c5ff
docs(ng:bind-attr): improve examples
2011-11-08 02:23:51 -08:00
Igor Minar
84873e7f4e
fix(angular-bootstrap): fix boostrap scripts that broke w\ 5a2dcb9a
...
Commit 5a2dcb9a doesn't properly modify angular-boostrap.js.
This fix resolves issues and makes both the regular and scenario
version of angular-boostrap.js functional.
2011-10-31 11:34:25 -07:00
Igor Minar
ef875ad0cf
feat(scope): better logging of infinite digest error
...
Feedback team has often problems debugging inifinite digest errors, this change
should reveal info about what watchers are causing the infinite loop
2011-10-31 11:34:25 -07:00
Vojta Jina
7d0c256ecd
docs(jqlite): add missing methods
2011-10-30 22:31:03 -07:00
Vojta Jina
dc8ffa51b7
fix(scenario.dsl): Fix dsl for $location
...
New $location does not have hashSearch, hashPath.
The old dsl was mixing $location / window.location so this solves the problem as well...
2011-10-26 15:58:59 -07:00
Igor Minar
d7ba5bc83b
feat(bootstrap): drop angular.js file name restrictions for autobind
...
The last script element in the dom is always us if the script that
contains angular is loaded synchronously.
For async loading manual bootstrap needs to be performed.
Close #621
2011-10-26 12:57:15 -07:00
Igor Minar
af7c51ee1d
style(Angular.js): various code style fixes
2011-10-26 12:57:14 -07:00
Igor Minar
25d1822bd8
style(HashQueueMap): fixing a typo in the comment
2011-10-26 12:54:00 -07:00
Igor Minar
3945f884c5
fix(ng:repeat) with array ignore properties not representing array elements
...
Along the way I also changed the repeater impl to use for loop instead
of for in loop.
Iteration over objects is handled by creating an array of keys, which is
sorted and this array then determines the order of iteration over an
element. This makes repeating over objects deterministic and
cross-browser compatible.
2011-10-26 12:54:00 -07:00
Igor Minar
d5ccabce60
fix(ng:view): ignore stale xhr callbacks
...
A lot of badness happens when we don't ignore stale xhrs. These
raceconditions are only apparent when user clicks through the app very
quckly without waiting for routes to fully load.
Closes #619
2011-10-26 12:15:07 -07:00
Dhruv Manek
163c799eff
fix(angular.widget): Allow widgets to be styled in IE8 and below
...
Closes #584
2011-10-24 23:28:36 -07:00
Vojta Jina
7da70af1ae
fix(scenario): Change title to "AngularJS"
2011-10-24 14:03:50 -07:00
Igor Minar
bacc31bea9
fix(defer.cancel): should return false instead of undefined
2011-10-22 21:32:48 -07:00
Igor Minar
ad90c3574f
feat($defer): add $defer.cancel
...
This functionality was previously available only as obscure $browser.defer.cancel.
I also added docs and tests and fixed an issue in .defer.cancel mock.
2011-10-22 21:32:48 -07:00
Vojta Jina
9b85757102
fix($location): rewrite links with nested elements
...
For example:
<a href="some/link">inner <span>text</span></a>
If you click on "text", then the span element is event.target, so we need to traverse the DOM.
2011-10-22 15:35:18 -07:00
Igor Minar
c6c3949b14
feat(filter.date): use mediumDate as default
...
Breaking change!
Previously the default was fullDate.
2011-10-20 16:51:28 -07:00
Igor Minar
e175db37c6
fix(date filter): default to fullDate format
...
The browser's behave inconsistently, so we should just stick to one format
when the format is not specified by the developer
Closes #605
2011-10-20 16:51:28 -07:00
Igor Minar
f38010d3a2
fix(compiler): revert 8611ebe6 - calling \$digest after linking
...
Change introduced by me in 8611ebe6 results in considerable inefficiencies when the compiler
and linker is used from within a widget, in which case, we call $digest unnecessary since it
will be called by the $apply which called the directive/widget in the first place.
There are only two places when the extra $digest call can be useful - when manually bootstrapping
the app or in tests. However even in tests this behavior can result in unwanted results (especially
when ng:controller is involved). So it is better to leave it for the developer to call $digest
when it is really needed.
2011-10-20 15:51:14 -07:00
Misko Hevery
7fc18b263d
fix(radio): allows data-binding on value property. Closes#316
2011-10-20 11:30:40 -07:00
Igor Minar
fabc9f77a3
feat(sanitizer): add html5 elements to the whitelist
...
Closes #89
2011-10-20 09:44:52 -07:00
Igor Minar
c17c731fdc
style(select): cleaning up select.js
2011-10-19 22:52:14 -07:00
TEHEK Firefox
3692885810
fix(ng:options): compile null/blank option tag
...
Fixes #562
2011-10-19 22:52:14 -07:00
Igor Minar
5d43439dbe
fix(ng:pattern): correctly parse out inlined regexp
2011-10-19 21:52:20 -07:00
Igor Minar
a46f2a0db3
docs(textarea): add docs for angular.widget.textarea
2011-10-19 16:49:34 -07:00
Igor Minar
3217a249e1
style(input): fix style violations in the input.js file
2011-10-19 16:49:34 -07:00
Konstantin Stepanov
78f394fd17
feat(input): add ng:minlength and ng:maxlength validation
...
notes(igor): I also e2e tests and refactorred the e2e test example to be
more clear about what is a variable and what is an html/framework api.
2011-10-19 16:49:20 -07:00
Konstantin Stepanov
e82e64d57b
fix(input): recognize 'password' as an html input type
2011-10-19 10:36:36 -07:00