Hi All,
I am new in angularjs just started after few days back. This may be very
basic for you guys, pls excuse me for the same. Actually I am trying to
create one dynamic page in which on any event (lets say button click) new
html section should be add (visible) at the bottom of the page. I have
written below code for the same but that not working, can any one pls help
me to guide where I am doing wrong.
HTML
-------------------------------
<!DOCTYPE html>
<html ng-app="" ng-controller="myCtrl">
<link rel="stylesheet"
href="webjars/bootstrap/3.2.0/css/bootstrap.min.css">
<script
src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.8/angular.min.js"></script>
<style type="text/css">
table {
border-collapse: collapse;
border-spacing: 0px;
}
table td {
padding: 8px 8px;
}
.boldText {
font-weight: bold;
}
</style>
<body>
<table align="center" width="80%" border="1">
<form>
<label>Name</label>
<input type="text" name="name" ng-model="newcontact"/>
<label>Email</label>
<input type="text" name="email" ng-model="newcontact"/>
<label>Phone</label>
<input type="text" name="phone" ng-model="newcontact"/>
<br/>
<input type="hidden" ng-model="newcontact" />
<input type="button" value="Append" ng-click="AppendText()" />
</form>
</table>
</br>
<br>
<div id="divID" data-ng-include data-ng-src="'partials/' + issue.status +
'.html'"></div>
<script>
function myCtrl($scope) {
$scope.AppendText = function() {
$scope.issue = {
status: 'open'
};
}
}
</script>
</body>
</html>
---------------------------------------------------------------------
I have open.html in my partial folder. Requirement is on button click I can
open any require html page, that'swhy I have keep it in different folder.
Thanks in advance.
Yogi-kaushik
--
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.