Misko Hevery
23b255a8b7
remove $init on scope from applying compilation template
...
Closes #40
2011-02-16 00:49:15 -05:00
Misko Hevery
e2154cbc0b
remove dom manipulation API from compiler
2011-02-16 00:48:22 -05:00
Misko Hevery
0a5c00abf8
Add public API to retrieve scope from element.
2011-02-16 00:48:22 -05:00
Misko Hevery
a004d487c4
allow jquery to be declared after angular in the script loading order
2011-02-16 00:48:22 -05:00
Misko Hevery
037f30a0c9
added missing semicolons
2011-02-16 00:48:21 -05:00
Igor Minar
c37bb2dc28
improving the $document docs
...
Closes #276
2011-02-16 00:10:47 -05:00
Anthony Lieuallen
7cf70c587e
Small spelling and grammar fixes in documentation.
2011-02-16 00:04:15 -05:00
Igor Minar
1777110958
split up services into individual files
...
- split up services into files under src/service
- split up specs into files under test/service
- rewrite all specs so that they don't depend on one global forEach
- get rid of obsolete code and tests in ng:switch
- rename mock $log spec from "$log" to "$log mock"
2011-02-15 11:01:53 -05:00
Igor Minar
d2089a1633
docs - adding cross links from directives to guide.expression
2011-02-14 11:42:58 -05:00
Igor Minar
e9ce22592a
$resource should encode url params with encodeURIComponent
2011-02-10 17:57:42 -08:00
Igor Minar
86321d1f57
add support for hashSearch redirection and custom redirection functions
2011-02-07 23:56:33 -08:00
Igor Minar
8724e97b7e
$route redirection should interpolate variables
2011-02-07 23:56:33 -08:00
Igor Minar
bf8013ad57
$location.updateHash should not preserve hashSearch when hashSearch is undefined
2011-02-07 23:56:32 -08:00
Igor Minar
a6c45c3e66
add description for ng:controller example
2011-02-07 23:55:46 -08:00
Igor Minar
e626f95469
$resource service docs
2011-02-07 23:55:42 -08:00
Igor Minar
2fab1a2da9
docs for $xhr, $xhr.error and $xhr.cache
2011-02-07 23:55:03 -08:00
Igor Minar
ae20f0c1b3
adding docs for angular.markup and angular.attrMarkup
2011-02-07 23:55:02 -08:00
Igor Minar
ea9ca651d2
fix how redirection is handled and tested
2011-02-06 09:35:14 -08:00
Igor Minar
d6db4b1749
fix typo in $browser mock
...
Closes #260
2011-02-04 14:23:51 -08:00
Vojta Jina
9798f5e35f
mock $log: fixed bug, added some tests
...
I extracted mock $log factory into stand alone function, so we can access it and test, because this service is rewritten by real service during testing, so we can't access it through angular.$service('$log')...
2011-02-04 14:18:28 -08:00
Igor Minar
fbc7f1b454
ng:view should be nestable in ng:include
2011-02-04 14:11:53 -08:00
Igor Minar
bf7c9d9900
$route.onChange should return the registered fn
2011-02-04 14:11:52 -08:00
Igor Minar
568574b915
mock's .xhr.flush() should throw exception when there is nothing to flush
2011-02-04 14:11:52 -08:00
Misko Hevery
46d690ff01
smarter normalization of value on option, and htmlParser fixes
2011-02-04 13:44:22 -08:00
Misko Hevery
882f412d57
Added remainder of the cookbook
2011-02-03 20:03:38 -08:00
Misko Hevery
0d4def68ae
added more cookbook: work in progress
2011-02-03 20:03:38 -08:00
Misko Hevery
d35c1ac8b0
Fixed notifyWhenNoOutstandingRequests() when using JSONP
2011-02-03 20:03:32 -08:00
Misko Hevery
b6a01bd27d
fixed population of value attribute on option
...
The value attribute must be populated manually, since different
browsers default to different value of option when not explicitly
defined.
2011-02-03 13:25:01 -08:00
Misko Hevery
ba6b68b6ae
changed the documentation @example to use <doc:example>
2011-02-01 10:00:09 -08:00
Igor Minar
9fd3dfe49d
add support for $route.reload()
...
Closes 254
2011-02-01 09:35:19 -08:00
Igor Minar
d7686a429c
add $route.parent for setting parentScope
2011-02-01 09:35:19 -08:00
Igor Minar
6c0cf17404
add redirection support to $route
...
Closes #217
2011-02-01 09:35:19 -08:00
Igor Minar
c648fee5c2
fix $location to handle updates to empty hash well
2011-02-01 09:35:18 -08:00
Igor Minar
9462c78fbf
$browser poller should notify $location only once per url change
2011-02-01 09:35:18 -08:00
Igor Minar
c4497d60bc
fix docs for $window service
2011-02-01 09:35:18 -08:00
Igor Minar
2389c71238
fixing $exceptionHandler docs
2011-02-01 09:33:59 -08:00
Igor Minar
ce7ab3d1ee
add support for 404 handling via $route.otherwise
...
Closes #217
2011-02-01 09:33:59 -08:00
Igor Minar
21ad176246
fixing $route docs
2011-02-01 09:33:58 -08:00
Igor Minar
f0fb4a3928
jqlite should not generate exceptions when accessing attributes on Document
2011-01-30 14:43:53 -08:00
Igor Minar
0144fa1ca9
fixing angular.Scope. docs
2011-01-30 14:43:03 -08:00
Igor Minar
8682befc72
fix for stupid IE handling of named functions in mocks
2011-01-26 22:30:09 -08:00
Igor Minar
f5d08963b0
split mocks and create $log and $exceptionHandler mocks
...
- split mocks between angular-mocks.js and mocks.js
- src/angular-mocks.js now contains only mocks that we want to ship
- test/mocks.js contains mocks that we use internally for testing
angular
- created angular.mock namespace
- created public $exceptionHandler mock rethrows errors
- created public $log mock stores all logs messages in an array that can
be accessed to make assertions
- internally we now have factory to create $exceptionHandler
that we can assert on
- internally we also keep track of all messages logged and
fail tests if messages were not expected and cleaned up (checked
via global beforeEach and afterEach)
- updated RakeFile and docs reader.js to point to the new
angular-mocks.js location
- made real $exceptionHandler and $log factories accessible from tests
and simplified their specs
- fixed typos in several spec descriptions
- added log assertions throughout the test suite
2011-01-26 15:46:05 -08:00
Igor Minar
6512a736ac
adding jsdoc for angular namespace
2011-01-26 15:37:22 -08:00
Igor Minar
9e0fa5b7c8
compile but don't bind option elements nested in a nameless select
...
otherwise an exception is thrown unexpectidly
2011-01-25 20:49:25 -08:00
Igor Minar
9368ea3814
Scope should retrieve $log and $exceptionHandler via $service
...
- fix $log and $exceptionHandler retrieval
- remove reference to non-existent `error` handler
- update tests
2011-01-25 20:49:25 -08:00
Misko Hevery
c2f2587a79
fixed example rendering, add tests for it.
2011-01-24 14:23:51 -08:00
Misko Hevery
5d0d34ae72
remove trailing whitespace
2011-01-24 14:23:51 -08:00
Igor Minar
a5990050d4
ng:view should propagate evals to the current child scope
...
- this change is needed because of previously reverted $route changes
that used to propagate evals automatically.
- also added docs to highlight how the eval propagation works
2011-01-24 14:03:43 -08:00
Igor Minar
8d507df8c9
Revert "$route should create child scope via $new"
...
This reverts commit a5eb3ed107 .
See 9ca2facb for reasoning.
2011-01-24 14:03:42 -08:00
Igor Minar
567f33823b
Revert "fix ng:include issue introduced by a5eb3ed1"
...
This reverts commit 17ee0f031a .
this and a5eb3ed1 introduced scope leakage that can't be resolved
until we fix up scope relationships and eval propagation.
I'm reverting both this and a5eb3ed1 until we can properly address
the issue.
2011-01-24 14:03:42 -08:00
Igor Minar
5340d1e0b1
fix for infinite loop in retrieveScope with jQuery + specs
...
- retrieveScope run into infinite loop if called on DOM tree
that doesn't contain scope reference (happens only with jQuery)
- added missing specs for retrieveScope function
2011-01-24 14:03:42 -08:00
Igor Minar
8d91ec4173
improve angular.Scope.$eval docs
2011-01-24 14:03:42 -08:00
Igor Minar
94737cd017
$cookies service should not call $eval during $eval
...
- added comment
- removed $eval call
- changed the code to not require $eval
- updated specs
2011-01-24 14:03:41 -08:00
Igor Minar
c8bb044be1
fix clobber test in angular-bootstrap.js for FF
2011-01-24 14:03:17 -08:00
Igor Minar
4a569560d8
null and other falsy values should not be rendered in the view
...
Closes #242
2011-01-20 12:55:03 -08:00
Igor Minar
17ee0f031a
fix ng:include issue introduced by a5eb3ed1
2011-01-19 21:47:14 -08:00
Igor Minar
10646c9f6f
add ng:view widget
2011-01-19 15:53:59 -08:00
Igor Minar
964e394555
fix argument variables in compiler
2011-01-19 15:53:59 -08:00
Igor Minar
a5eb3ed107
$route should create child scope via $new
2011-01-19 15:52:27 -08:00
Igor Minar
63690d1892
angular internals should not call methods via angular namespace
2011-01-19 15:52:27 -08:00
Igor Minar
da4b8a74c3
fix spec title for angular.formatter.index
2011-01-18 15:15:33 -08:00
Misko Hevery
5be92f7b9c
fix broken build for IE. Read option.type==select-multiple rather then check presence of multiple attribute
2011-01-18 15:02:51 -08:00
Igor Minar
ad3b811b8b
fixes, examples and tests for angular.Object.* docs
2011-01-18 14:42:18 -08:00
Igor Minar
d3f7bd699e
various doc fixes for angular.Array.* apis + example and spec limitTo
2011-01-18 11:15:36 -08:00
Misko Hevery
1d7b9d5626
support compilation in HTML widgets
2011-01-14 10:30:05 -08:00
Misko Hevery
347be5ae9a
fixed select with ng:format
...
select (one/multiple) could not chose from a list of objects, since DOM requires string ids.
Solved by adding index formatter, which exposed incorrect handling of formatters in select
widgets.
2011-01-14 10:30:00 -08:00
Igor Minar
23875cb330
significant rewrite of the $location service
...
- don't update browser before and after eval instead
- sync location properties before eval
- sync location properties and update browser after eval
- added tests
- symplified the code
- removed $location.toString() because it was not idempotent and useless
This resolves the issue with issuing two $route.onHashChange calls
when the $location was updated with a hashPath that needs to be encoded
2011-01-13 16:58:35 -08:00
Igor Minar
b0be87f663
fix for angular.Object.equals to handle equals({},null)
2011-01-13 07:55:31 -08:00
Igor Minar
9ccd2f0412
adding a fallthrough comment
2011-01-11 17:48:30 -08:00
Igor Minar
99004b0aed
fixing missing dependency
2011-01-10 23:28:47 -08:00
Misko Hevery
c3e32f1a51
fix broken e2e test due to $window no longer published
2011-01-10 13:55:08 -08:00
Misko Hevery
4f22d6866c
complete rewrite of documentation generation
...
- romeved mustache.js
- unified templates
- improved testability of the code
2011-01-10 11:50:11 -08:00
Vojta Jina
aab3df7aea
Fixed filter.date, so it parses format ending with non-replaced string
...
Closes #159
2011-01-10 10:37:37 -08:00
Igor Minar
0a6cf70deb
Rename angular.foreach to angular.forEach to make the api consistent.
...
camelcase is used for other angular functions and forEach is also
used by EcmaScript standard.
- rename the internal as well as the external function name
- tweak the implementation of the function so that it doesn't
clober it self when we extend the angular object with an
object that has a forEach property equal to this forEach function
Closes #85
2011-01-10 10:26:55 -08:00
Igor Minar
c79aba92f6
bootstrap angular on "document ready" instead of window.onload
...
- use jqLite api to bootstrap angular
- when jQuery is present DOMContentLoaded or hacks for IE are used
- when jqLite is present DOMContentLoaded is used for modern browsers
and IE9 and window.onload is used for other browsers.
- test html for comparing DOMContentLoaded with window.onload
Closes #224
2011-01-10 10:24:12 -08:00
Igor Minar
84dedb81e7
jqLite should recognize window as an element even in IE
...
in IE window object has length property which makes it look like a
collection to jqLite. This commit makes jqLite properly identify
window as an element even in IE.
IE6 doesn't have Window type, so we need to check against window
object and only then do a more general check against Window. This
is not perfect, but I say screw IE6.
2011-01-10 10:24:12 -08:00
Igor Minar
e999740044
fix addEventLister detection for IE9
...
IE9 added support for addEventListener and it looks like some
new events (e.g. DOMContentLoaded) can't be registered via attachEvent,
only addEventListener correctly registeres these. So to make sure
we are using the latest and greatest we need to look for addEventListener
instead of attachEvent in the jqLite feature detection code.
2011-01-10 10:24:12 -08:00
Misko Hevery
4c71824a69
fix for IE free function weirdness
2011-01-10 10:22:24 -08:00
Misko Hevery
47c454a315
change to keydown from keyup; add delayed $updateView
...
- There was a perceived lag when typing do to the fact that we were
listening on the keyup event instead of keydown. The issue with
keydown is that we can not read the value of the input field. To
solve this we schedule a defer call and perform the model update
then.
- To prevent calling $eval on root scope too many times as well as to
prevent drowning the browser with too many updates we now call the
$eval only after 25ms and any additional requests get ignored. The
new update service is called $updateView
2011-01-07 14:39:46 -08:00
Igor Minar
16086aa37c
$location service should utilize onhashchange events instead of polling
2011-01-07 14:39:41 -08:00
Igor Minar
142a985f33
Revert "Issue #51 : Update extensionMap()"
...
This reverts commit 00ca67e4be .
Now that we don't have published services, we don't need to worryi
about this any more and in fact this behavior is confusing because
to override a service that has dependencies with a services with
no dependencies one must specify $inject:[] or else the old
dependencies will be injected.
Conflicts:
src/Angular.js
test/AngularSpec.js
2011-01-07 12:02:45 -08:00
Igor Minar
bd5ec7c32a
rename nodeName due to conflicts with jquery
2011-01-07 12:02:45 -08:00
Igor Minar
bdc251c5a5
add global namespace clobbering check to angular-bootstrap
2011-01-07 12:02:45 -08:00
Igor Minar
da1d50fbe9
avoid namespace conflicts between jqLite and window when running in bootstrap mode
2011-01-04 18:04:01 -08:00
Igor Minar
b2631f6170
rename scope.$inject to scope.$service
...
see changelog diff for more info
2011-01-04 18:04:00 -08:00
Igor Minar
1430c6d6b1
renaming service property $creation to $eager
...
see changelog diff for more info
2011-01-04 18:03:55 -08:00
Igor Minar
3ea5941f0e
removing support for 'eager-published' services
2011-01-04 16:40:41 -08:00
Misko Hevery
d0270d9256
Remove many eager-publish services, lazy polling
...
- Browser now starts the poller on first call to addPollFn()
- Many services ($location, $cookies, $router) are no longer eager-publish. The result is that
unless someone needs the $cookies, they will not cause the Browser to start polling for them.
2011-01-04 16:40:40 -08:00
Misko Hevery
5f080193cb
Added an extra security check to make sure that the parser can not execute anything while evaluting JSON.
2011-01-04 13:25:49 -08:00
Igor Minar
e7a0fb250f
fromJson delegation to native JSON parser if available
...
- native parser delegation
- $xhr change to use native parser
2010-12-22 14:16:36 -08:00
Igor Minar
d11088eb43
Revert "Refactor lexer to use regular expressions"
...
We came across a major performance regression due to this change.
I'm reverting it until we find a better solution.
This reverts commit 23fc73081f .
2010-12-22 14:16:36 -08:00
Misko Hevery
a5df1fc41f
Stricter JSON parsing, for security
2010-12-11 10:07:10 -08:00
Misko Hevery
ec4d446f89
Closes #153 : input widgets without name are ignored
2010-12-11 08:28:11 -08:00
Misko Hevery
b225083a21
Fire $eval only if the value has actually changed on input
2010-12-11 08:27:52 -08:00
Igor Minar
b370fac4fc
$defer service should always call $eval after callback finished
...
Closes #189
2010-12-10 13:22:44 -08:00
Misko Hevery
23fc73081f
Refactor lexer to use regular expressions
2010-12-08 14:39:22 -08:00
Misko Hevery
e5e69d9b90
Remove RegExp parser
...
- RegExp parser is rearly used, feature, and one should not have RegExps
in views anyways, so we are removing it
BACKWARD INCOMPATIBLE CHANGE!!!
2010-12-08 14:36:51 -08:00
Misko Hevery
fa722447f8
Fixed failed assignments of form abj[0].name=value
...
Closes #169
2010-12-08 14:20:26 -08:00
Igor Minar
824eab9029
improving $resource docs
2010-12-07 16:06:31 -08:00
Igor Minar
8aed2047f0
fixing closure compiler warnings
2010-12-06 20:48:47 -08:00
Igor Minar
f60b6b0938
fix the angular.Array.orderBy example + add docs
2010-12-06 20:32:37 -08:00
Igor Minar
c8f34e7f6b
fixing lint warnings in older code
2010-12-06 16:45:59 -08:00
Igor Minar
011fa39c2a
add $browser.defer and $defer service and fix async xhr cache issue
...
- Closes #152 ($resource().query() sometimes calls callback before
returning, and it shouldn't)
- add $browser.defer method
- add $defer service
- integrate $browser.defer with outstandingRequests counter in $browser
- fix all old tests that relied on buggy behavior
2010-12-06 16:45:59 -08:00
Misko Hevery
58d0e8945d
allow documentation to be in external file
...
* Load templates once instead of per request
* show timing information
* load files ending in .ngdoc and process them
2010-12-06 15:48:40 -08:00
Misko Hevery
2bbced212e
Fix sanitization issues as suggested by evn
2010-12-03 15:42:42 -08:00
Misko Hevery
5a8ad8fe32
Closes #170 . Corrected the behavior of select when options are ng:repeated
...
- Delete $postEval method, as it was a hack
2010-12-02 22:45:57 -08:00
Misko Hevery
41d5938883
Fixed sanitization
...
* explicitly require full URLs (ftp|https?://...)
* list the URI attributes
* remove a lot of unneeded attributes
2010-11-29 21:55:32 -08:00
Igor Minar
aa21c521eb
more docs for angular.service.
2010-11-25 09:50:07 -08:00
Vojta Jina
47f159cdf3
Doc service: added example into service overview
2010-11-25 08:51:26 -08:00
Igor Minar
99eb123d79
docs for all angular.* type checking functions
2010-11-25 08:19:14 -08:00
Igor Minar
6515adc118
docs for angular.injector
2010-11-24 22:50:34 -08:00
Igor Minar
b7aff92354
docs for angular.bind
2010-11-24 22:33:40 -08:00
Igor Minar
6b3b00e095
docs for angular.foreach
2010-11-24 21:13:58 -08:00
Igor Minar
921f7ce49e
docs for angular.extend
2010-11-24 21:03:56 -08:00
Igor Minar
17eee57c52
fixing docs for angular.scope
2010-11-24 19:29:45 -08:00
Igor Minar
4fc3ee8040
docs for angular.compile
2010-11-24 19:14:34 -08:00
Igor Minar
39d3ae80d9
docs for angular.element
2010-11-24 19:03:06 -08:00
Igor Minar
480f2f33c1
docs for angular.noop and angular.identity
2010-11-24 18:23:21 -08:00
Igor Minar
9c9a89f7ff
docs for angular.scope. and angular.scope.
2010-11-24 18:07:11 -08:00
Igor Minar
73194009a9
docs for angular.Object.copy
2010-11-24 17:32:04 -08:00
Igor Minar
162f41a1ab
docs for angular.Object.size
2010-11-24 17:21:37 -08:00
Igor Minar
7c82c4f837
docs for angular.Object and angular.Object.equals
2010-11-24 16:55:44 -08:00
Igor Minar
97b1371199
adding Note section to angular.Array.* where it was missing
2010-11-24 16:32:03 -08:00
Igor Minar
95d1768c77
docs for angular.Array.sum
2010-11-24 16:28:17 -08:00
Igor Minar
c3d99d68da
docs for angular.Array.filter
2010-11-23 17:14:04 -08:00
Igor Minar
303a683081
docs for angular.Array.remove
2010-11-23 16:28:24 -08:00
Igor Minar
a0e8c45880
docs for angular.Array.remove
2010-11-23 16:10:14 -08:00
Igor Minar
870547d185
docs for angular.Array.orderBy
2010-11-23 15:44:14 -08:00
Igor Minar
0d1f8a0532
docs for angular.Array.count
2010-11-23 14:10:10 -08:00
Igor Minar
b94600d71e
adding docs for angular.Array.add
2010-11-23 11:05:28 -08:00
Igor Minar
3e5a4ef86c
placeholder docs for all angular.Array functions
2010-11-22 10:57:44 -08:00
Igor Minar
efec0c358d
Add angular.Array.limitTo and docs for angular.Array
2010-11-22 10:57:32 -08:00
Igor Minar
50ef1f8e35
don't escape $ in hashpath either
2010-11-18 22:40:00 -08:00
Igor Minar
66c0bfaa8e
don't escape ! and : in hashPath
...
This is a temporary fix for Issue #158
2010-11-18 20:51:31 -08:00
Igor Minar
1719b0aca5
fix all closure compilation warnings due to invalid function types
2010-11-18 17:03:43 -08:00
Igor Minar
fc7f11d03b
add @workInProgress tag and mark all @ngdocs as work in progress
2010-11-18 16:28:42 -08:00
Igor Minar
7f339a1782
escape code in ng:bind-attr jsdoc
2010-11-18 11:33:09 -08:00
Igor Minar
72a5f007d8
most of the documentation for angular.scope and friends
2010-11-18 02:35:30 -08:00
Igor Minar
c635b69f5c
fix docs and examples for ng:format, ng:required and ng:validate
2010-11-18 02:35:30 -08:00
Igor Minar
522ec1a9ec
move attribute widgets to widgets.js file
...
- move @ng:repeat to widgets.js and its specs to widgetsSpecs.js
- move @ng:non-bindable to widgets.js and its specs to widgetsSpecs.js
- make widget.template suitable for attribute widgets
- fix up the js docs for attribute widgets
2010-11-18 02:35:29 -08:00
Igor Minar
9cb57772a4
fix docs for angular.directive and ng:autobind
2010-11-18 02:35:29 -08:00
Igor Minar
a6978b201b
make @param type and description non-optional
2010-11-18 02:35:28 -08:00
Igor Minar
e509ec37f5
fixing angular.lowercase and angular.upppercase jsdocs + api
2010-11-18 02:34:54 -08:00
Igor Minar
9d36368ff9
fixing angular.filter.number jsdocs
2010-11-18 02:34:54 -08:00
Igor Minar
d4bcee0799
toJson and fromJson jsdocs
2010-11-18 02:34:54 -08:00
Igor Minar
4c69d694d7
make @returns type non-optional
2010-11-18 02:34:53 -08:00
Igor Minar
ff7c738c21
fix ng docs for angular, angular.lowercase and uppercase
2010-11-18 02:34:53 -08:00
Igor Minar
fc78738cc6
scope docs + lowercase doc fix
2010-11-18 02:34:52 -08:00
Misko Hevery
b2d63ac48b
Changed error handling so that better stack traces are displayed in the ng-errors
2010-11-16 14:19:55 -08:00
Igor Minar
a130bb899d
add onload attribute to ng:include
2010-11-16 11:35:43 -08:00
Vojta Jina
cc749760fd
Added basic Services, which support @memberOf and @methodOf
2010-11-15 21:55:37 -08:00
Misko Hevery
b467a50bc7
generate keyword for searches; improved layout of doc
2010-11-15 12:28:08 -08:00
Misko Hevery
a1652057a5
changed to ! notation for indexable apps
2010-11-15 10:04:17 -08:00
Misko Hevery
7e6f999221
added remaining directives and search box.
2010-11-15 10:04:17 -08:00
Igor Minar
0a8b3161b1
$watch should optionally skip listener exec
...
- if initRun param is set to false, listener doesn't execute
- the oldValue should equal newValue during the initial execution
- added docs
- added specs
2010-11-11 16:39:01 -08:00
Igor Minar
ae5f6f48b4
scenario repeater should match only visible stuff
2010-11-10 21:04:44 -08:00
Igor Minar
c5b2bf083c
Make ng:repeat expose $position.
...
- $position is a textual representation of the position of
repeated item ('first', 'middle', 'last')
- added specs for $index
2010-11-10 21:04:44 -08:00
Misko Hevery
0499c47270
added ng:switch-when-default; changed $watch to always fire on init. (may be backward incompatible)
2010-11-10 21:01:17 -08:00
Misko Hevery
6b8ed42670
Added Directives
2010-11-10 12:02:49 -08:00
Igor Minar
6d53808475
improve jsdocs
...
- improve json filter example
- improve filter overview doc
- improving validator overview jsdocs
- simplify number filter examples and make them live + add specs
- various doc fixes
2010-11-09 22:33:27 -08:00
Igor Minar
324694a58b
Better example widget
...
- syntax highlighting
- tabless design
- rename widget to doc:example
- rename widget files (wiki_widget.* -> doc_widget.*)
- example section is now optional
2010-11-09 22:27:31 -08:00
Elliott Sprehn
257e97a65f
Support substring matching of bindings with repeater(). Closes #123
2010-11-09 13:39:12 -08:00
Misko Hevery
c048f0d8e8
Added formatter documentation.
2010-11-09 09:15:29 -08:00
Elliott Sprehn
96e37a0866
Add key/value jQuery methods in a loop. Support 'css' method.
...
Closes #134
2010-11-09 08:02:49 -08:00
Igor Minar
fc9ce9ec07
make angular.String.toDate consider all time fractions as optional
2010-11-08 22:49:30 -08:00
Igor Minar
da17c61444
angular.Date.toString should use toISOString if available
2010-11-08 22:49:30 -08:00
Igor Minar
e5c135ac50
Support ISO 8601 extended datetime format troughout angular.
...
Support ISO 8601 extended format datetime strings (YYYY-MM-DDTHH:mm:ss.SSSZ) as defined
in EcmaScript 5 throughout angular. This means that the following apis switched from
YYYY-MM-DDTHH:mm:ssZ to YYYY-MM-DDTHH:mm:ss.SSSZ (note the added millis) when representing dates:
- angular.Date.toString
- angular.String.toDate
- JSON serialization and deserialization (used by json filter, $xhr and $resource)
2010-11-08 22:49:30 -08:00
Igor Minar
1a43f36e23
Add isDate method + fix old code
2010-11-08 22:49:29 -08:00
Igor Minar
a397645537
date filter should accept ISO 8601 formatted string as input
...
Closes #125
2010-11-08 22:46:41 -08:00
Vojta Jina
00ca67e4be
Issue #51 : Update extensionMap()
...
If user override existing extension, angular properties ($) will be preserved.
This piece of logic could be refactored into separate method:
Something like we have extend(), addMissingProperties() - I can't find a name
for this method...
Closes #51
2010-11-07 14:42:03 -08:00
Misko Hevery
91b6c5f7ff
Added documentation for validators.
...
BACKWARD INCOMPATIBLE: removed ssn validators, since it is unlikely that most people will need it and if they do, they can added it thorough RegExp
2010-11-07 13:06:55 -08:00
Vojta Jina
5be325a0c1
Refactored toJsonArray(), added isBoolean() function
2010-11-05 21:39:00 -07:00
Vojta Jina
b7027b9d87
Updated toJson() to not serialize window/document objects.
...
The reason to void these to objects is that they cause all sorts
of problems like exceptions being thrown and infinite loops occuring
when we iterate over object properties.
2010-11-05 21:39:00 -07:00
Vojta Jina
fe8353bc5e
Changed toJson() to not ignore $ properties
2010-11-05 21:39:00 -07:00
Misko Hevery
d5e9f38f3d
fix error in json parser which did not allow 1.2E10 as number
2010-11-05 16:41:36 -07:00
Misko Hevery
dc66687149
added tests for documentation
2010-11-05 15:05:24 -07:00
Misko Hevery
3d6a099d6e
changed to showdown from markup. added validator overview
2010-11-05 13:32:37 -07:00
Misko Hevery
47066e70e1
added documentation for ng:include and ng:widget and test for doc collector.
2010-11-04 14:24:31 -07:00
Elliott Sprehn
ee5e881b9e
Fix JSON serialization breakage in WebKit browsers
2010-11-03 11:47:06 -07:00
Elliott Sprehn
690dfe000b
Serialize RegExp to string in JSON. Closes #119 .
2010-11-03 11:10:51 -07:00
Igor Minar
dfa8baf59a
hide example for angular.filter
2010-11-03 10:02:20 -07:00
Igor Minar
a8efd43d25
doc parser should recognize the 'defaults' syntax for params
2010-11-03 09:47:23 -07:00
Misko Hevery
5159eb7635
fix the linky filter
2010-11-03 09:47:22 -07:00
Igor Minar
1ba8c2a33a
more documentation for filters
2010-11-03 09:47:22 -07:00
Misko Hevery
659af29adb
jsdoc parser + generator + viewer + scenario runner
...
- parse jsdocs from source code
- generate prerendered (markdown + mustache) partials
- generate json
- generate scenario runner for examples in docs
- basic angular doc viewer
2010-11-03 09:47:22 -07:00
Igor Minar
1fe7e3a130
add jsdocs for angular and filter namespaces + all filters
2010-11-03 09:47:21 -07:00
Igor Minar
aec3c8478c
binding() should return value for input/text area, innerHTML for the rest
2010-11-03 09:47:21 -07:00
Igor Minar
5c887ddb66
adding textarea() DSL for scenario runner
2010-11-03 09:47:21 -07:00
Igor Minar
0bd4a473a7
adding regular expressions support for binding() DSL
2010-11-03 09:44:54 -07:00
Elliott Sprehn
dcf76e6816
Provide better sandbox error messages, and disallow running from file:// URLs
2010-11-02 11:27:54 -07:00
Elliott Sprehn
56a3d52f45
Make future names consistent and handle falsy values in jQuery generated methods properly
2010-11-02 11:20:41 -07:00
Elliott Sprehn
faa7d81b67
Add browser().reload() to simulate a refresh from a user
2010-11-01 17:24:24 -07:00
Elliott Sprehn
6bb2cd6ee2
Provide browser DSL with location() to expect the iframe URL parts. Also move navigateTo() under the browser DSL.
2010-11-01 15:21:37 -07:00
Vojta Jina
2d61040fb0
Small refactor in $location service
...
Added new inner method updateLastLocation()
2010-10-31 21:37:54 -07:00
Vojta Jina
99f25050a3
Fixing issue #98 (infinite loop when location hash set empty)
...
Added tests and fixed the issue.
Closes #98
2010-10-31 21:37:33 -07:00
Misko Hevery
ba5f8ee27f
fix typo, and change a list to string for more efficient compression.
2010-10-31 15:04:30 -07:00
Elliott Sprehn
9a532002cf
Auto generate all the jQuery get/set methods
2010-10-29 12:19:22 -07:00
Elliott Sprehn
5524d2b0fb
Check if file exists (not a 404) and that document is accessible and not using file:// URLs in Application
2010-10-29 11:40:56 -07:00
Andres Ornelas
34909520ae
add optional label to dsl with selectors to improve test and output readability
...
e.g.
Before:
code: element('.actions ul li a').click();
output: element .actions ul li a click
After
code: element('.actions ul li a', "'Configuration' link").click();
output: element 'Configuration' link ( .actions ul li a ) click
2010-10-28 15:21:02 -07:00
Elliott Sprehn
92e31b556f
Correctly fail tests if no binding matches and add better test cases for failure behavior.
2010-10-27 17:56:44 -07:00