chore(grunt): update to latest jshint task …
Upgrade JSHint task from ~0.6.4 to ~0.7.2. Two useful changes: ability to set jshintrc option to use jshint's native ability for finding .jshintrc files relative to the linted files and update jshint to 2.3.0. Closes #5143
chore(mocks): wrap angular-mocks.js in closure …
Closes #5080
chore(grunt): add jshint to the test task …
It is very easy to let jshint failures slip into the master build if the jshint task is not part of the standard local grunt tasks.
chore(grunt): add jshint tasks
fix: don't inline css in csp mode. …
Also add `angular-csp.css` to the resulting build.
chore(npm): grunt-contrib-jasmine-node changed name
chore(travis): run bower install twice to make sure it does …
This is a work-around for Bower/Node.js issue (bower/bower#830). We run `bower install` twice, as the probability of failing twice in a row is very low. I had to extract `bower` task out of the package, because we need to run `bower install` before building and `grunt bower` can fail, which takes down the whole process and therefore it wouldn't build.
chore(tests): add Promises/A+ Test Suite to the build …
Closes #3693
chore: run more browsers on Travis (IE8,IE9,IE10,Safari,FF) …
Also instead of running everything in parallel, there are only two parallel tasks: - e2e tests running in the background (only on Chrome) - all the unit tests running sequentially
Specify hostname/port for connect server to avoid joyent/libuv#826
chore(ngMobile): rename module ngTouch and file to angular-touch.js …
BREAKING CHANGE: since all the code in the ngMobile module is touch related, we are renaming the module to ngTouch. To migrate, please replace all references to "ngMobile" with "ngTouch" and "angular-mobile.js" to "angular-touch.js". Closes #3526
fix(bower): update bower usage and resources …
Changes: - Fix our old code to use bower_components/ as the install dir - Fix the Bootstrap asset to use github.com/twbs/bootstrap (it moved) - Fail the build on Bower failure. Bower should not fail silently.
feat(ngAnimate): complete rewrite of animations …
- ngAnimate directive is gone and was replaced with class based animations/transitions - support for triggering animations on css class additions and removals - done callback was added to all animation apis - $animation and $animator where merged into a single $animate service with api: - $animate.enter(element, parent, after, done); - $animate.leave(element, done); - $animate.move(element, parent, after, done); - $animate.addClass(element, className, done); - $animate.removeClass(element, className, done); BREAKING CHANGE: too many things changed, we'll write up a separate doc with migration instructions
feat(ngBindHtml, sce): combine ng-bind-html and ng-bind-html-unsafe …
Changes: - remove ng-bind-html-unsafe - ng-bind-html is now in core - ng-bind-html is secure - supports SCE - so you can bind to an arbitrary trusted string - automatic sanitization if $sanitize is available BREAKING CHANGE: ng-html-bind-unsafe has been removed and replaced by ng-html-bind (which has been removed from ngSanitize.) ng-bind-html provides ng-html-bind-unsafe like behavior (innerHTML's the result without sanitization) when bound to the result of $sce.trustAsHtml(string). When bound to a plain string, the string is sanitized via $sanitize before being innerHTML'd. If $sanitize isn't available, it's logs an exception.
chore(travis): speed up the build …
- parallelize the tasks - cache requests (e2e tests) This reduces the time from ~18min to ~12min. It makes the output little messy. We could buffer output of each task and display it once it's fully finished, nicely. I think giving instant feedback is better.
refactor($route): pull $route and friends into angular-route.js …
$route, $routeParams and ngView have been pulled from core angular.js
to angular-route.js/ngRoute module.
This is was done to in order keep the core focused on most commonly
used functionality and allow community routers to be freely used
instead of $route service.
There is no need to panic, angular-route will keep on being supported
by the angular team.
Note: I'm intentionally not fixing tutorial links. Tutorial will need
bigger changes and those should be done when we update tutorial to
1.2.
BREAKING CHANGE: applications that use $route will now need to load
angular-route.js file and define dependency on ngRoute module.
Before:
```
...
<script src="angular.js"></script>
...
var myApp = angular.module('myApp', ['someOtherModule']);
...
```
After:
```
...
<script src="angular.js"></script>
<script src="angular-route.js"></script>
...
var myApp = angular.module('myApp', ['ngRoute', 'someOtherModule']);
...
```
Closes #2804feat($swipe): Refactor swipe logic from ngSwipe to $swipe service. …
This new service is used by the ngSwipeLeft/Right directives, and by the separate ngCarousel and swipe-to-delete directives which are under development.
chore(ngdocs): move angular-bootstrap.js to be generated only inside … …
…the docs and remove from the build process