<div id="myArea" ng-controller="myController">
</div>
<script type="text/javascript">
angular.bootstrap(document.getElementById("myArea"), ["myController"]);
</script>
var my = angular.module('my', []);
var myScope = null;
function myController($scope, $timeout) {
// Enable global access of this scope .
if (myScope == null)
myrScope = $scope;
if (typeof _myModel != 'undefined' && _myModel && _myModel != "") {
$scope.Model = angular.extend($scope.Model, _myModel);
}
}
</div>
<script type="text/javascript">
angular.bootstrap(document.getElementById("myArea"), ["myController"]);
</script>
var my = angular.module('my', []);
var myScope = null;
function myController($scope, $timeout) {
// Enable global access of this scope .
if (myScope == null)
myrScope = $scope;
if (typeof _myModel != 'undefined' && _myModel && _myModel != "") {
$scope.Model = angular.extend($scope.Model, _myModel);
}
}
Comments
Post a Comment