I'm not really sure how to ask this question, but basically I have a 
controller that has some logic that controls some HTML5 video.

I have a case where that logic needs to change based on a users preference. 
For example, the default play type of the video is the video plays and they 
can jump around the video, scrub forward, backward etc.

The second play type is more restricted. I need the video player locked 
down a little bit more.

Some of the existing logic will be shared between both play types which is 
why I want to do like an include of some sort.

Rather than having all the play type logic for both in one controller, I'd 
like to include it like below..is that even possible?



VforumJS.controller('VforumController', function($scope)
{
$scope.presentationData.type = 'default' // or 'restricted';

if ($scope.presentationData.type == 'default')
{
//include default play type logic as ext file?
}
else
{
//include restricted play type logic as ext file?
}

/*shared play type logic below
......
...
..
.
...
.....
*/
});

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to