Posts are not displaying

Ok I am stumped. The button is working but the posts are not showing up.


<!doctype html>
    <link href="" rel="stylesheet">
    <link href=",400,700" rel="stylesheet" type="text/css">
    <link href="css/main.css" rel="stylesheet">
    <script src="js/vendor/angular.min.js"></script>
  <body ng-app="FeedsterApp">
    <div class="header">
      <div class="container">
        <div class="row">
          <div class="col-md-2">

    <div class="posts" ng-controller="PostController">
      <div class="container">

    <div class="post" ng-repeat="post in posts">
      <feedster-post post="post"></feedster-post>

    <!-- Modules -->
    <script src="js/app.js"></script>

    <!-- Controllers -->
    <script src="js/controllers/PostController.js"></script>

    <!-- Directives -->
    <script src="js/directives/feedsterPost.js"></script>

    <script src="js/directives/plusOne.js"></script>



app.directive('FeedsterPost', function(){
  return {
    restrict: 'E',
    scope: {
    	post: '='
    templateUrl: 'js/directives/feedsterPost.html'


<img class="avatar" ng-src="{{ }}">
<h3 class="author-name">{{ }}</h3>
<p class="comment-text">{{ post.comment.text }}</p>
<img class="comment-img" ng-src="{{ post.comment.img }}">


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


app.controller('PostController', ['$scope', function($scope) {
  $scope.posts = [
      author: {
        name: 'Calvin Broadus, Jr.',
        avatar: 'img/cbj.svg'
      comment: {
        img: 'img/dog.jpg',
        text: 'How much for that dogg in the window?'

      author: {
        name: 'Matthew Healy',
        avatar: 'img/mh.svg'
      comment: {
        text: 'I used to have a recurring dream when I was younger.'

Hey there, your code looks just fine … maybe browser issue? which one are you using?

Hi … I think the problem is in the directive’s"FeedsterPost" name it should start with lower case f

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.