Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript

Niall Maher
Niall Maher
16,985 Points

Angular Pros please help me! - It could get me my first big job <3

So I am at the final stages of an interview. After a 3 hours of interviews talking to everyone in a potential front end dev role have been given a final task to see how fast I could learn some angular.

I've been given "several days" & and even if I fail I would love to learn how to build what they asked for future endeavors. I may have bitten off more than I can chew but it's an opportunity to improve either way .

What I have to do is build a sports news feed.

I have been given sample JSON files which I need to load in with Angular and eventually do a ng-repeat to dynamically load the news feed.

After a couple of hours of videos I am no closer to being able to use this JSON data. I have attached my work space which includes a photo of what I am supposed to replicate (obviously I'm still a million miles away) but once I can get the service to work I can start worrying about the rest.

At the moment I am trying to just console.log the object with no success.

Here's my workspace - https://w.trhou.se/ije8ulhwar

3 Answers

akak
akak
29,445 Points

Hi,

I really think that if you want this job, you should try to crack it yourself. It's about feeling comfortable in a new job. If you can't handle this task there is a chance you won't be able to handle every task given to you on a daily basis by your bosses.

I'm in similar position right now, I went to some interviews lately. The job I wanted the most had unfortunately too much of a backend involved in it. I did the test, but went to great lengths with it. And despite that job being the best in many terms - I've chosen the one I felt more comfortable with. I don't want every day to struggle everyday at work. That's just my two cents.

Cheers!

Niall Maher
Niall Maher
16,985 Points

I have been! I have found that the JSON files day gave me weren't correct which is the real problem holding me back.

I would argue whole heartily against your "comfortable job" as I want to be in an uncomfortable position that forces me to learn fast and stops me being lazy. I honestly believe it's the best for my career development to dive in deep.

But again that's not for everyone! I'm just hungry to make progress.

akak
akak
29,445 Points

I did not take a job that is comfortable. I have taken the one I know I can handle. They even stated in my test introduction "please do the test by yourself". So I did not seek help. I think that's fair to the employer. If you work better under a lot of stress, that dedline is close, and you don't know how to do a thing - well...

Maybe you are right that this enforces a faster learnign curve, but that's not for me. I guess everyone's different :)

Cheers!

Vance Rivera
Vance Rivera
18,322 Points

So what exactly is the problem you are having with this project? Is it only that you are not receiving the data from the http get request? Are you running a server for this site locally? Your problem could be that you are just locally opening the website in your browser and that the data is not being transferred properly because the program does not recognize the relative path you are requesting. A good work around that is to use an IDE that has a built in server or look into something like node to server up your pages and data.

If this is your current problem you can use the Brackets IDE by adobe. I found it to be very good for developing locally with angular without having to go the extra distance of manually starting a server to host my websites.

http://brackets.io/

Niall Maher
Niall Maher
16,985 Points

Thanks for the reply! I use brackets as my Primary editor so that's not the problem :) I have gotten a lot further since I posted this! Just did lots of reading and learning. The main problem I having now is setting up my API call to getty images.

Vance Rivera
Vance Rivera
18,322 Points

Are you able to server the data from your json files to the controller?

Niall Maher
Niall Maher
16,985 Points

Yes I'm pulling the data from the JSON no problem - https://w.trhou.se/8pdvug6kp9 There's my attempt at getting each picture from Getty Images, I wrapped the output in a h1 so you can see that it's working