Vote count:
0
I have started a project in angularjs. I wanna implement fancybox in the project
So, I have included fancybox plugins and jquery too.
Here is my code snippets
View
<a href="" ng-click="openPage('popups/add.html')">ADD</a>
Controller
app.controller('MainController',
function MainController($scope) {
$scope.user = "Hey Welcome";
$scope.open = function(template_path){
$.fancybox({"href":template_path})
}
}
)
And popup/add.html
<div class="pop-contnr">
<h2>ADD</h2>
<table>
<thead>
<tr>
<th align=center>{{user}}</th>
</tr>
</thead>
</table>
</div>
Fancybox is getting opened, but scope of the user is not getting. ANyone please help
asked 51 secs ago
Aucun commentaire:
Enregistrer un commentaire