barbatus / angular2 Goto Github PK
View Code? Open in Web Editor NEWAngular2 Packaged for Meteor
Angular2 Packaged for Meteor
Meteor uses [email protected]
which is not able to use packages like @reactivex/rxjs
which is a dependency of [email protected]
.
A simple upgrade to [email protected]
in meteors scripts/dev-bundle-tool-package.js
would solve the problem, but I don't know if it will have sideeffects.
I made an issue meteor/meteor/issues/5365
As I used the angular2-meteor package I found that multiple type definitions from angular are missing, such as the http service. Is this intentional, or with good reason?
I think they'd need to be added to this repository.
After updating to the latest angular2 version I'm getting the following error in the browser:
Uncaught SyntaxError: Unexpected token <
turns out, the browser is trying to download a file from http://localhost:3000/angular2/angular2
returning to the previous version by running
git checkout '*'
meteor reset
meteor
makes the application work again without problems. I've late updated the packages one by one and found that the error occurs whenever this package gets updated.
There is a similar issue in the socially tutorial - Urigo/meteor-angular2.0-socially#18
any ideas?
Hello,
I am using (keyup)="doneTyping($event, userinput.value)" for a auto-fill form.
On Firefox 44, It behaves a expected, userinput.value contains the whole string that I typed.
However on Android System Webview 47.0.2526.100 for Android (using Cordova) it behaves this way for the following fields :
input email : takes the whole userinput.value except the last character
input password : takes the whole userinput.value except the last character
input text : behaves very strangely, I don't even have the exact characters I typed in the variable I assign userinput.value. When I type a word it doesn't recognize the letters of this word until I type 5 characters maybe
The typings provided with the current version seems to be way behind the actual angular 2 version required with the package.json
, namely angular.2.0.0-beta.9
.
But my actual problem is this:
$ cat tsconfig.json
{
"compilerOptions": {
"experimentalDecorators": true,
"module": "system",
"target": "es5"
},
"files": [
"typings/main.d.ts",
"typings/angular2-meteor/angular2-meteor.d.ts"
]
}
$ tsc
typings/angular2/common.d.ts(39,20): error TS2304: Cannot find name 'Observable'.
typings/angular2/common.d.ts(723,19): error TS2304: Cannot find name 'Observable'.
typings/angular2/common.d.ts(725,20): error TS2304: Cannot find name 'Observable'.
typings/angular2/core.d.ts(13,35): error TS2307: Cannot find module 'rx'.
typings/angular2/core.d.ts(328,22): error TS2304: Cannot find name 'Predicate'.
typings/angular2/core.d.ts(339,25): error TS2304: Cannot find name 'Predicate'.
typings/angular2/core.d.ts(4635,39): error TS2304: Cannot find name 'BaseException'.
typings/angular2/core.d.ts(4720,38): error TS2304: Cannot find name 'BaseException'.
typings/angular2/core.d.ts(4755,35): error TS2304: Cannot find name 'BaseException'.
typings/angular2/core.d.ts(4775,34): error TS2304: Cannot find name 'BaseException'.
typings/angular2/core.d.ts(5319,74): error TS2304: Cannot find name 'Map'.
typings/angular2/core.d.ts(7074,65): error TS2304: Cannot find name 'BaseException'.
typings/angular2/core.d.ts(7605,41): error TS2304: Cannot find name 'PlatformReflectionCapabilities'.
typings/angular2/core.d.ts(7607,29): error TS2304: Cannot find name 'PlatformReflectionCapabilities'.
typings/angular2/core.d.ts(7628,46): error TS2304: Cannot find name 'GetterFn'.
typings/angular2/core.d.ts(7630,46): error TS2304: Cannot find name 'SetterFn'.
typings/angular2/core.d.ts(7632,46): error TS2304: Cannot find name 'MethodFn'.
typings/angular2/core.d.ts(7644,27): error TS2304: Cannot find name 'GetterFn'.
typings/angular2/core.d.ts(7646,27): error TS2304: Cannot find name 'SetterFn'.
typings/angular2/core.d.ts(7648,27): error TS2304: Cannot find name 'MethodFn'.
typings/angular2/platform/browser.d.ts(82,35): error TS2304: Cannot find name 'GenericBrowserDomAdapter'.
typings/angular2/platform/browser.d.ts(222,33): error TS2304: Cannot find name 'Map'.
typings/angular2/platform/browser.d.ts(309,19): error TS2304: Cannot find name 'Predicate'.
typings/angular2/platform/browser.d.ts(318,35): error TS2304: Cannot find name 'Predicate'.
typings/angular2/platform/browser.d.ts(327,40): error TS2304: Cannot find name 'Predicate'.
Any suggestions?
I'm not exactly sure, if this is an issue for @barbatus angular2 or @Urigo Meteor-Angular2, but If I got it right, this project is responsible for TypeScript compilation.
In a Meteor-Angular2 project, I wanted to use Random.hexString(n);
on the server, but overlooked, that I missed to add it to .meteor/packages
. I found out, that the script simply stopped to execute after trying to use Random
with no error thrown.
When using meteor with javascript, this slip causes a ReferenceError: Random is not defined
on the server or the client, but with Meteor-Angular2 and TypeScript, errors are only thrown on the client side.
Is it possible to add support for jade in inline templates? I'm not sure if this is the right place to post this issue, but I'm using your brilliant tutorial, and I'd like to use jade for my inline templates.
I know about the option to use ng.jade
and let it compile to html
and reference the url in templateUrl
, but I like it even more for small templates to use jade in the template
property.
Something like this would be awesome ๐
@Component({
selector: 'login',
template: jade`
h1 Social Login
button.btn.btn-default((click)="loginWithGoogle()") Google
button.btn.btn-default((click)="loginWithFacebook()") Facebook
button.btn.btn-default((click)="loginWithGithub()") Github
`,
directives: [CORE_DIRECTIVES, COMMON_DIRECTIVES, FORM_DIRECTIVES],
bindings: [AccountsService]
})
@barbatus Please create a Meteor package for Ionic2 http://ionicframework.com/docs/v2/
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.