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

Luke Lee
Luke Lee
7,577 Points

Angular JS Source file doesn't work in first step

This is the code I downloaded:

<!DOCTYPE html>
<html lang="en" >
<head>
  <meta charset="utf-8">
  <title>Dabbble</title>
  <link rel="stylesheet" href="lib/bootstrap/css/bootstrap.css"/>
  <link rel="stylesheet" href="css/app.css"/>
</head>
<body ng-controller="AppCtrl">
  <div class="container">
    <div class="navbar">
      <div class="navbar-inner">
        <a class="brand" href="#/">Dabbble</a>
        <ul class="nav">
        </ul>
      </div>
    </div>
    <div ng-view></div>
  <h1>Hello {{ name }}</h1>
  </div>
  <script src="lib/angular/angular.js"></script>
  <script src="js/app.js"></script>
  <script src="js/services.js"></script>
  <script src="js/controllers.js"></script>
  <script src="js/filters.js"></script>
  <script src="js/directives.js"></script>
</body>
</html>

I put in Hello {{ name }} as instructed by the video. It just didn't work.

1 Answer

Luke Lee
Luke Lee
7,577 Points

Never mind, just put ng-app in HTML.