Skip to content
This repository
branch: master

Angularjs in Meteor

How to use it

The angularjs app is always called meteorapp.

angular.module('meteorapp', [meteor]).
    config(['$routeProvider', function($routeProvider) {
         when('/index', {templateUrl: 'partials/index.html',   controller: MeteorCtrl}).
         otherwise({redirectTo: '/'});

Directory structure

     angular.html(Main screen should contain body content)


app.controller('MeteorCtrl', ['$scope','$meteor',function($scope,$meteor){
  $scope.todos = $meteor("todos").find({});
        name: "Do something",
        done: false

<div ng-repeat="todo in todos">
    <input type="text" ng-model=""/>
    <button ng-click="">Save</button>
    <button ng-click="todo.remove()">Remove</button>


Make sure that you always write angularjs code that can be minified, else use the --debug function. To deploy with Heroku use this buildpack. Thanks to @mimah

Something went wrong with that request. Please try again.