Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

JavaScript AngularJS Basics (1.x) Services in Angular Using Services To Get Data

What happened to my todos?

I'm using the Brackets text editor.

Since I'm not working in Treehouse Workspace how do I get the preview of the mock/todos.json folder and file where Huston is typing it in on the url at the 1:06 mark?

Here's my todos.json file

[ {"name": "clean the house"}, {"name": "water the dog"}, {"name": "feed the lawn"}, {"name": "pay the bills"}, {"name": "run"}, {"name": "swim"} ]

and here's my app.js file

angular.module("todoListApp", []) .controller("mainCtrl", function($scope, dataService){

$scope.learningNgChange = function() {
    console.log("An input changed!");

$scope.helloConsole = dataService.helloConsole;


.service("dataService", function() { this.helloConsole = function() {
console.log("This is the hello console service!"); };


1 Answer

Hey Martin.

I'm not sure what you're asking. Do you want to be able to see the file itself or are the mock todos.json tasks not loading correctly in your app?