I am not convinced that controlling this with a directive is the best API.  If you are creating an application that is complex enough that you will need this then you are going to be writing a bunch of modules in JavaScript, in which case it is not a big deal to apply the flag to the module.  For instance, you could have a method on the module API:

```
angular.module('myApp', ['ngRoute'])
  .requireAnnotations()
  .controller(...)
  ...
  .factory(...);
```

This is also more self-documenting - I doubt that anyone would ever be able to guess what `ng-app-strict` actually meant, without having to go to the docs.

Any, regarding the examples, we have a nice feature that asks Dgeni not to automatically apply an `ng-app` to the index.html wrapper that gets generated, which allows us to apply it explicitly inside the example itself.  We use this in the Concepts guide: https://github.com/angular/angular.js/blob/master/docs/content/guide/concepts.ngdoc#L35.

In this case the example will look like:

```
<example ng-app-included="true">
   <file name="index.html">
   <div ng-app-strict="ngAppStrictDemo">
   ...
   </file>
</example>
```