- So when we change the
subtitlesobject on this controller: https://github.com/pculture/unisubs/blob/dev/media/src/js/subtitle-editor/controllers/subtitle-list.js#L200 , our new list renders a new set of li's: https://github.com/pculture/unisubs/blob/dev/templates/subtitles/subtitle-editor.html#L79-L90 - In some cases, when this list renders, we want to pre-select one of the li's, using this method: https://github.com/pculture/unisubs/blob/dev/media/src/js/subtitle-editor/directives/subtitles.js#L36-L69
- What I'm confused about is: what is the proper "Angular"-way to call a private method on a custom directive from within a controller? Or should that private method (onSubtitleItemSelected) be somewhere else?
Created
July 28, 2013 23:46
-
-
Save nicksergeant/6101121 to your computer and use it in GitHub Desktop.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment