I need use jQuery UI Datepicker
in my Angular
application, but I wan't create a new directive for this, I just want execute $(".dateInput").datepicker();
after Angular render
How to can I do this?
I need use jQuery UI Datepicker
in my Angular
application, but I wan't create a new directive for this, I just want execute $(".dateInput").datepicker();
after Angular render
How to can I do this?
I found solution! using $timeout
, fallowing my code:
var app = angular.module("myApp", []);
app.controller("myCtrl", ["$scope", "$timeout", function ($scope, $timeout) {
$timeout(function () {
$("[name=data]").datepicker();
});
}]);