Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Alunos = new Mongo.Collection('alunos');
- if (Meteor.isClient) {
- angular.module('minhaApp', ['angular-meteor']);
- //Controller AlunoListController
- angular.module('minhaApp').controller('AlunoListController', ['$scope', '$meteor', function ($scope, $meteor) {
- $scope.alunos = $meteor.collection(Alunos);
- $scope.add = function(form){
- Alunos.insert({nome:form.nome, sobrenome:form.sobrenome})
- }
- ......
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement