Category: Angular

Posted in Angular

Date pipe is not working well with custom format

Date pipe is not working well when custom format is used. ie: dd/MM/yyyy. You can see an example in this plunker: http://plnkr.co/edit/nNpBNaB8z7DEnZdpj7gM?p=preview

Continue Reading
Posted in Angular

Cannot find name ‘Zone’

I cannot compile my angular 2 app with typescript, compiler’s message is: Running “typescript:base” (typescript) task >> node_modules/angular2/src/core/zone/ng_zone.d.ts(2,37): error TS2304: Cannot find name ‘Zone’. >>…

Continue Reading
Posted in Angular

Cannot select multiple radio buttons in same control group

In beta.6 when having multiple radio buttons in the same control group, as soon as one is selected all the others in that same control…

Continue Reading
Posted in Angular

beta.6: TypeError: viewFactory_0 is not a function

I received TypeError: viewFactory_<name>0 is not a function under certain conditions involving mutually recursive components; plunker here. A similar error (triggered without recursion) was discussed…

Continue Reading
Posted in Angular

Unable to resolve Typings dependencies

Hi, I juste use the config of https://angular.io/docs/ts/latest/quickstart.html#!#package-json And I have error about Typings when I run ‘npm install’ Have an idea about it ?…

Continue Reading
Posted in Angular

chore: improve error message when multiple components use same selector

I accidently ran into this due to copy and pasting. Forgot to change the selector of the copied component, here’s the error I got: EXCEPTION:…

Continue Reading
Posted in Angular

What is proper way to reload page with AngularJs 2 and TypeScript?

$window.location.reload(); from previous version.

Continue Reading
Posted in Angular

Grandchild Component will not update Parent’s/Grandparent’s model

I have the following scenario. I have a Grandparent component which passes a value to a Parent component. When one changes a value in the…

Continue Reading
Posted in Angular

RouteParams in AppComponent

Hello, When I try to inject RouteParams in AppComponent: import {Component, OnInit} from ‘angular2/core’ import {RouteConfig, ROUTER_DIRECTIVES, RouteParams} from ‘angular2/router’ import {UIMatrix} from ‘./matrix’ import…

Continue Reading
Posted in Angular

:

Version: beta.6 Browser: Chrome 48 I reproduced this bug into this plunk: http://plnkr.co/edit/HFvG6xGVnwYnp0Bft87l?p=preview http://embed.plnkr.co/HFvG6xGVnwYnp0Bft87l/ Code: <form (ngSubmit)=”onSubmit(fileForm.form.value)” #fileForm=”ngForm”> <select ngControl=”cat” #cat=”ngForm”> <option selected disabled>Selected option</option>…

Continue Reading