Giter Club home page Giter Club logo

angular2's People

Contributors

barbatus avatar dab0mb avatar steevefong avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

angular2's Issues

Multiple typings missing

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.

system.js is trying to download angular2/angular2 in the browser

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?

(keyup)="doneTyping($event, userinput.value)" behaves differently on different platforms

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

Typings are broken.

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?

No errors thrown when trying to use an undefined package

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.

Support for Jade in inline templates

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]
})

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.