I'm maintaining an angular code, but I do not know much about version 1 of this framework, how do I put today's date in this input? Does anyone have any ideas?
<input disabled type="text" class="form-control dateinput" datepicker-popup="{{format}}" ng-model="panorama.start" is-open="startopened" min-date="minDate" max-date="'2315-06-22'" datepicker-options="dateOptions" date-disabled="disabled(date, mode)" ng-required="true" close-text="Fechar" current-text="Hoje" clear-text="Limpar" style="width: 100px">
I found this in js code
angular.module("panorama11App").controller("HeaderCtrl", ["$scope", "$routeParams", "$filter", "panorama", "Config", function(a, b, c, d, e) {
var myVar = '2015-10-10';
a.open = function(b, c) {
console.log("Opening..."), b.preventDefault(), b.stopPropagation(), a[c] = !0
}, a.panorama = d, a.$watch("panorama", function() {
d = a.panorama
}), console.log("RouteParams:", b), a.config = e
}]),
In the code there are also some returns like this:
return {
restrict: "E",
scope: {
title: "@",
content: "@",
"class": "@",
dngmodel: "=",
editable: "@",
placeholder: "@"
},
controller: EditablespanCtrl,
templateUrl: "views/editablespan.html"
}
Is it possible that if I add a variable there, I can get it in the code?
I put an id in my input and added a value in it, but it does not work