Search code examples
angularjsstackblitz

Does not render component


I have created AngularJS simple project using stackblitz, i am unable to
add module name.

i have tried multiple times, as a new bee bit confused.

here is a link for my project error. https://angularjs-nbhgkj.stackblitz.io full project https://stackblitz.com/edit/angularjs-nbhgkj


Solution

  • Issue is with the following line.

    window.app = angular.module('app','date', requires);
    

    change it to

    window.app = angular.module('app', requires);
    

    because angular.module expects module name and dependency array.