akoenig / angular-deckgrid

A lightweight masonry-like grid for AngularJS.
http://akoenig.github.io/angular-deckgrid
MIT License
1.1k stars 191 forks source link

Initial Setup #109

Open bighaj opened 8 years ago

bighaj commented 8 years ago

I'm having trouble getting module to work. I have a MEAN project built with the MEAN.JS framework for reference, and I'm on Angular 1.5. Here's what I did:

  1. Installed with bower
  2. Included angular-deckgrid.js in the all.js file
  3. Inject angular-deckgrid.js into the controller: function() { 'use strict'; angular.module('app.core').controller('coreArticleController', coreArticleController); coreArticleController.$inject = ['$scope', 'Articles', 'Article_Categories', 'Article_Tags', 'Reviewers','akoenig.deckgrid']; function coreArticleController($scope, Articles, Article_Categories, Article_Tags, Reviewers,akoenig.deckgrid) {....
  4. In the html page, I have this:

    {{article.title}}

    ....
  5. I have the css created

When I run the page, it doesn't resolve {{article.title}} and it's not repeating based on the collection. Here's the find() function from the controller:

$scope.find = function() { $scope.articles = Articles.query();

        $scope.availableTags = Article_Tags.query();
        $scope.availableCategories = Article_Categories.query();
        $scope.reviewers = Reviewers.query();
    };