Skip to content Skip to sidebar Skip to footer

Js : Wrong Redirection With A Slider

I do my work-placement in a company who use somes trainee to do a website. They use this website only in the company. I recovered the work of trainee who worked before me, and, in

Solution 1:

I will post this as an answer, as it is too long for comments.

You can fix that.

I barely have any AngularJS experience, but I'll explain the logic of code you need to implement.

You have 3 video objects in $scope.video , when you click

<a data-toggle="modal" data-target="#myModal">

you need to call a

$('#nameOfElement').click(function(e){})

where e is an Event, event will contain the ID of clicked video, you need to take this ID and pass it to #myModal and select the relevant video (instead of looping through all of the video you need to load only one).

This question might help

Passing data to a bootstrap modal

This is as accurate as I can explain with my knowledge of AngularJS.

Post a Comment for "Js : Wrong Redirection With A Slider"