I need to show a Simple current time with an angular based-application.So have tried a demo.
In the body onload function execute the piece of function.
<body onload="startTime()">
function startTime() {
}
i don't want in javascript function to execute. Onload is a javascript predefined function,In angular is there any directive like ngload ? need to write the custom directive for this or
Nginit is behave like similar or can i call the function inside run block means what are the difference from angular run vs javascript onload?
if using ng-init,need an controllor,without controller run block is there to execute the angular function. is there any other options available to show on the Dom loaded.