angular-ui/ui-codemirror — pull request #53 by whitehat101 (2014-04-29 02:27:15+00:00)
Title: new feature: allow access to the CM instance through a $broadcast event

Currently the only way to interact with the CM instance is to get it through the onLoad callback (often storing it for later use).

I've added an event callback that allows direct and spontaneous access to the CM instance.

CoffeeScript example:
```coffee
# in the controller that owns the

$scope.$broadcast 'CodeMirror', (cm) ->
cm.scrollIntoView 1, 0
```

This allowed for much cleaner code in my controllers and link functions.