Questions tagged [angular2-meteor]

angular2-meteor is an angular2 component which acts as the bridge between angular2 and meteor. It helps your angular2 project to properly utilize meteor backend

With angular2-meteor, you can replace the default Meteor rendering engine (Blaze) by Angular 2, and also use Angular code directly on your server.

Therefore, it leverages Angular skills for rich client apps to build full stack systems through Meteor features, like isomorphism (a.k.a. universal), DDP connection and client MiniMongo database. But also easy hybrid mobile apps packaging and Hot Code Push.

For example, Angular 2-way binding between model and view, can easily become 3-way binding with Meteor by integrating the server database.

Official resources:

131 questions
90
votes
15 answers

Attempt to use a destroyed view: detectChanges

I am creating a simple UI using Angular Meteor 2. 1) I have a top navbar component which has a 'logout' button. 2) On clicking 'logout' button it redirects to 'login'. 3) Then I see this error in console : EXCEPTION: Attempt to use a destroyed view:…
Abhishek
  • 1,216
  • 1
  • 9
  • 13
34
votes
2 answers

How to Redirect to a certain route based on condition in Angular 2.

I am creating one angular2-meteor app. export const routes: Route[] = [{ path: '', redirectTo: "login", pathMatch: "full" }, { path: 'login', component: LoginComponent }, { path: 'csvtemplate', component:…
Amit kumar
  • 6,029
  • 6
  • 30
  • 40
28
votes
3 answers

Angular2 SEO - How to make an angular 2 app crawlable

I am building an Angular 2 app using the Angular-Meteor framework. I would like to achieve fast and consistent indexing by google and other search engines, and allow Facebook sharer and other scrapers to generate previews of my JS-generated…
Rayjax
  • 7,494
  • 11
  • 56
  • 82
22
votes
3 answers

Argument of type 'Date' is not assignable to parameter of type 'string'

I am working on Angular2-Meteor project and I am getting this Argument of type 'Date' is not assignable to parameter of type 'string'. error when I wrote this function to set value in date. start: startOfDay(new Date(attendance.dayAt)), I have…
Habib
  • 846
  • 2
  • 9
  • 24
9
votes
1 answer

Include Google Font in Angular 2 + Meteor Application

Newb to Angular 2 . How to include Google font in my app. App Structure is client      |--app.ts      |--main.ts      |--index.html IndexFile.html
Sandeep Chikhale
  • 1,505
  • 2
  • 21
  • 36
8
votes
1 answer

No best common type exists among return expressions

When I use Collection2 in angular2-meteor project, these kinds of codes from demo always give me warning in the terminal: No best common type exists among return expressions. How can I improve the codes? Thanks { createdAt: { type: Date, …
Hongbo Miao
  • 45,290
  • 60
  • 174
  • 267
6
votes
0 answers

Is Angular2-Meteor ready for production?

Is Angular-Meteor ready for production? Has anyone successfully build and deployed a working solution using the Angular2-Meteor stack?
shogun000
  • 303
  • 1
  • 2
  • 13
5
votes
1 answer

Angularfire2: "location.protocol" must be http or https ( a Meteor app)

I'm making an app with angular2-meteor based on Meteor v1.4 and Angular2 rc-5. so far been alright but I need to integrate it with my Firebase database but I get the exception below (I'm running the app on Chrome). it seems all my typescript is…
ePezhman
  • 4,010
  • 7
  • 44
  • 80
5
votes
1 answer

angular2-meteor sample stopped working after meteor update

I'm just going through the Meteor Angular 2 Tutorial. At step 6 I randomly tried 'meteor update' which crashed my sample. Update worked and server is starting. However the browser screen stays now empty and in the console appears an error. Since I'm…
Manuel
  • 9,112
  • 13
  • 70
  • 110
4
votes
4 answers

Update user email address in meteor

I want to update email address in meteor by : Meteor.users.update(this._id, {$set: {"emails[0].address": "deleted_" + preEmail }}); but instead of updating email array, 0 argument, then address ,it create a new field like emails[0] then address. it…
Mehrnoosh
  • 879
  • 2
  • 12
  • 27
4
votes
2 answers

how to use lazy loading in angular2-meteor app

I am creating a angular2 meteor app in which i need to do lazy loading . I have tried angular 2 doc for lazy loading. app.routes.ts import { Route } from '@angular/router'; import { Meteor } from 'meteor/meteor'; import { LoginComponent } from…
Amit kumar
  • 6,029
  • 6
  • 30
  • 40
4
votes
1 answer

There is already a collection named "collection" in angular 2 + meteor

import {Mongo} from 'meteor/mongo'; export let Products = new Mongo.Collection('products'); above code is that I've written in my sample project. When I try to run this sample project, It throws error There is already a collection named…
Vivek Aasaithambi
  • 919
  • 11
  • 23
4
votes
2 answers

Angular2-meteor - Variable undefined after a find() with sort in a subscribe function

I'm new to Meteor and the angular2-meteor package and I'm trying to learn how to use them following the well made "Socially" app tutorial found here: Socially turorial. While experimenting with what I have seen there about the Publish/Subscribe…
GiuZu
  • 98
  • 6
3
votes
2 answers

Internationalization for Angular2 Meteor Web Application

I am building a web application with Meteor and Angular2. I need the application to support 4 languages. I am basing my project on Uri Goldshtein's boilerplate https://github.com/Urigo/angular2-meteor-base. Which is the recommended way to implement…
3
votes
1 answer

collectionCount not displaying value in template / meteor-rxjs in a service

That's my first submission to SO, so, if anything is wrong or not in the right place, please feel free to tell me. Now to my question: I'm trying to implement a service within a simple to-do application based on the Angular2 meteor-base…
minau87
  • 33
  • 4
1
2 3
8 9