I am definitely doing something wrong while trying to create a component in Angularjs. I am getting an error:
Error: [$injector:modulerr] Failed to instantiate module myApp due to:
Error: [$injector:nomod] Module 'myApp' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.
Any pointers would be helpful. Here is my JSFiddle