List items with or without binding

This commit is contained in:
Max Lynch
2013-10-09 20:07:39 -05:00
parent ec889daf06
commit 595fc67e49
9 changed files with 107 additions and 56 deletions

View File

@ -17,7 +17,7 @@ angular.module('ionic.service.modal', ['ionic.service'])
var element = $compile(templateString)(scope);
$document[0].body.appendChild(element[0]);
var modal = ionic.views.Modal({el: element[0] });
var modal = new ionic.views.Modal({el: element[0] });
scope.modal = modal;
return modal;
},