I use Razor to display all the data in my MVC project:
@Html.TextBoxFor(model => model.Birthday, new {id = "birthday"})
I'm pretty new in AngularJS; Now, I want to use AngularJS,( Example).
But now, I don't know how I can set the model.Birthday in this way.
I've set
ng-app="myApp"
for the div tag, which includes
<label>Birthday:</label>
<adm-dtp ng-model='date'></adm-dtp>
@*@Html.TextBoxFor(model => model.Birthday, new {id = "birthday"})*@
and,
<script>
var app = angular.module('myApp', ['ADM-dateTimePicker']);
app.controller('dateController',function() {
var self = this;
});
</script>