I am currently using AngularJS version 1.6.6 along with Gulp for my project. Here are the snippets of my code, particularly focusing on the AppLayout component:
/// app-layout.component.js
angular.module('app').component('appLayout', {
templateUrl: 'components/app-layout/app-layout.html',
controller: 'AppController as $ctrlApp'
});
/// app-layout.controller.js
function AppController($rootScope, $interval) {
this.timeNow = new Date();
$interval(function() {
this.timeNow = new Date();
}, 1000);
};
// app-layout.html
<div ui-view="" class="main-wrapper"></div>
I am facing an issue and need some help to identify what's wrong here. Unfortunately, I have not been able to find any solutions so far.