scope.scope.isValid = true;
Today I have something cool for you. Except that I don’t like Angular.js, because are other options better than it out there. But this is so amazing to me. To declare a scope in scope, wow! So nice <3, enjoy it!
If you want to know more about Angular.js or Scope I invite you to the official documentation.
Remember, this is a series with scary code, so if you wanna see the complete list, you can do it here