Read Practical AngularJS Introduction This book contains the AngularJS related blog posts posted on Dinis Cruz’ blog at This is the first draft release of this book, so please send your sugesttions, criticisms, ideas or comments to firstname.lastname@example.org Notes about current structure Angular 2 - Typescript code coverage with Istanbul - devcross.net One of the important things when you switch to a new framework, like Angular 2, is testing. And one of the important things in testing is code coverage.TL;DR;Here is the sample project as download. Today i would like to show you, how to implement code coverage with Typescript and Angular 2.
The reason Angular JS will fail I agree with the premise but disagree with the argument. > Which brings me to the pattern of ever failing technologies. Remember Moo Tools? Prototype? ... Prototype and moo tools tried to be innovative, but they just made things harder. Test a modal dialog in AngularJS with Mocha, Chai, Sinon and BardJS I’m creating this post because I feel there’s not much information about this subject online, so if anyone besides me can use this, I can feel satisfied. I’ll show how to test a bootstrap modal dialog box, using the resources provided by hottowel yeoman generator. In the first place we need a way to create the modal, I choose a service in app/common/bootstrap path, according to bootstrap.dialog, however I did a little bit change, I replaced the ModalInstance variable as a function and use it as a controller in order to maintain consistency in all the application, like this. Now, we need to spy on the open modal method like this: sinon.spy($uibModal, 'open'); Then, wee need to stub the modal dialog, because we don’t need to test the internals of this, we need to test the implementation we have in our application:
AngularJS 2.0 Today, after eight months of work, over two thousand commits, nineteen beta and six release candidates, we finally released AngularJS 1.3.0 superluminal-nudge! This release includes many notable new features: One-time bindings – by prefixing an expression with "::", it will only be interpolated once, and then no longer watched.ngAria – a new module that helps make custom components in Angular more accessible by defaultngMessages – a new directive that simplifies writting and coordinating feedback for on form validityngModelOptions – a directive that makes it easy to customize the behavior of bound models. For instance: debouncing, getter-setter-style models, update-on-blur, and more.Strict DI – an option for finding places in your application that will not minify due to use of short-hand DI syntax Included in this release are over four hundred bug fixes, and nearly one thousand documentation improvements. You can read the exhaustive list of changes in our changelog on GitHub.