FAQ: Your First App - Hello AngularJS I

This community-built FAQ covers the “Hello AngularJS I” exercise from the lesson “Your First App”.

Paths and Courses
This exercise can be found in the following Codecademy content:

Learn AngularJS 1.X

FAQs on the exercise Hello AngularJS I

There are currently no frequently asked questions associated with this exercise – that’s where you come in! You can contribute to this section by offering your own questions, answers, or clarifications on this exercise. Ask or answer a question by clicking reply (reply) below.

If you’ve had an “aha” moment about the concepts, formatting, syntax, or anything else with this exercise, consider sharing those insights! Teaching others and answering their questions is one of the best ways to learn and stay sharp.

Join the Discussion. Help a fellow learner on their journey.

Ask or answer a question about this exercise by clicking reply (reply) below!

Agree with a comment or answer? Like (like) to up-vote the contribution!

Need broader help or resources? Head here.

Looking for motivation to keep learning? Join our wider discussions.

Learn more about how to use this guide.

Found a bug? Report it!

Have a question about your account or billing? Reach out to our customer support team!

None of the above? Find out where to ask other questions here!

Hi,
how to write angularjs code for an application in ipad. that is how to refer the ipad database. Anyone can please help me ?

Hi all,

This maybe sounds stupid: I’m stuck at the very first instruction:

In app.js , type in the contents exactly as you see here:

var app = angular.module("myApp", []);

When I do this and click on Run, an error occurs. What am I doing wrong?

2 Likes

Same error here! Even the solution I get from the site is not working…

I am getting the same… even if I copy the code from the solution.

Why is this??

I have the same problem, as soon as I click run, the error occurs, independent of if any code has been added

Having the same problem (on a Mac, Mojave)
It shows that the problem is related to PhantomJS:

"ee[31m08 07 2019 09:17:14.503:ERROR [launcher]: e[39mCannot start PhantomJS
,
,e[32m08 07 2019 09:17:14.510:INFO [launcher]: e[39mTrying to start PhantomJS again (1/2).
,e[31m08 07 2019 09:17:14.517:ERROR [phantomjs.launcher]: e[39m/home/ccuser/node_modules/phantomjs-prebuilt/lib/phantom/bin/phantomjs: error while loading shared libraries: libfontconfig.so.1: cannot open shared object file: No such file or directory
,
,e[31m08 07 2019 09:17:14.517:ERROR "

If I use the button to give me the solution by CodeAcademy, the application runs fine (although if I type the exact same code by trying it doesn’t work

I guess this is a mac problem, or some application which doesn’t run properly on Mac since I’m fine on Windows 10. This won’t be helpful though, sorry.

no its not stupid it happens it probably just computer problems or issues with codecademy ive had it happen before too don’t worry mate.