So when I was using Angular JS, I wanted to set the form in a modal dialog window back to its pristine state whenever it was shown.

Problem was, the form is always undefined. If I place a code within the modal window, the form exists but when I call it in a Javascript function, it is undefined.

The solution is to add $parent to your form name like this:

This will automatically create the form object in your parent controller. Then, you can simply access it using the scope like $scope.myForm.

To fix this Ant error message that confuses users into thinking that the cause of the error is somewhere in the foreach tag, do the following steps:

  1. Go to  the download page of ant-contrib at
  2. Download ant-contrib-0.3 and copy ant-contrib-0.3.jar to the lib folder where your Apache Ant is installed.
  3. In your build.xml file, make sure you declare this XML

That is all!

This is a Sponsored post written by me on behalf of FK VPS for SocialSpark. All opinions are 100% mine.

These days it is a better and more viable solution to rent a virtual private server than actually buy a physical server. The big factor for me is its cost. For one thing, if ever the server breaks down, I do not have to worry about it because the company that I subscribe my virtual private server to will take care of repairs and troubleshooting.

Virtual private servers act just like normal servers do. They reside in a physical server that is divided into multiple virtual servers where each one of them can run its own operating system, install its own programs and be rebooted independently as many times as the user wants.

Well here is the good news. FK VPS is offering a promotion for a 50% lifetime discount if you subscribe now. How about that huh? 50% off for life! This is huge savings that you must take advantage of and must never miss.

Each user has their own requirements and needs. FK VPS can custom tailor your virtual private server according to your specifications providing a full range of infrastructure components that are outside of their basic offer.

The subscriptions options vary but they are affordable. You should really check them out. The 50% offer for life makes this deal even sweeter.

Visit Sponsor's Site

Related Posts Plugin for WordPress, Blogger...