Note: This article applies to Angular 1 and the example is written in ES5. Let’s say you have a directive where you have a button and once clicked you want an event to happen in another directive. The problem is that the two directives have different scopes, so passing the change directly is not possible. […]
Month: May 2017
Grails clean global mock on integration tests to avoid polluted environment
So, you are using Grails/Groovy for your app and Spock as testing framework. You have an integration test that is testing something on a class that has another dependencies that you have to mock. Something like: class TestedClassSpec extends Specification { @Unroll void “test some method on Class that has dependencies”() { given: def testedClass […]
Add https to Amazon S3 hosted website
First word: always make sure you understand the costs of using the following cloud services. In this tutorial, I’m going to show you how to add a certificate to a site hosted on Amazon S3 with a custom domain, so that your site will be accessed like https://your_site.something. For this article we’ll use ‘Let’s encrypt‘ […]