Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 23:25
    AndrewKushnir labeled #46140
  • 23:01
    AndrewKushnir commented #46145
  • 22:53
    LucasBortolazzo starred angular/angular
  • 22:53
    renovate[bot] edited #46104
  • 22:53
    renovate[bot] edited #46017
  • 22:18
  • 22:16
    ngbot[bot] unlabeled #46145
  • 22:16
    AndrewKushnir labeled #46145
  • 22:16
    AndrewKushnir labeled #46145
  • 22:16
    ngbot[bot] unlabeled #46145
  • 22:16
    AndrewKushnir labeled #46145
  • 22:11
    JosafatJimenezB starred angular/angular
  • 22:01
    sc0z starred angular/angular
  • 22:01
    alxhub review_requested #46139
  • 22:00
    alxhub labeled #46139
  • 21:55
    roopeshreddy commented #46126
  • 21:54
    ngbot[bot] milestoned #46059
  • 21:54
    alxhub labeled #46059
  • 21:54
    ngbot[bot] milestoned #46127
  • 21:54
    alxhub labeled #46127
Eric Martinez
@ericmartinezr
Alexander Wieser
@crystalbyte
@ericmartinezr Simple enough, thanks ;)
Eric Martinez
@ericmartinezr
:+1:
Soroush Gholamzadeh
@s-o-r-o-u-s-h
I'm in middle of Angular 1 project, And I tried to avoid directives,Of course sometimes I had to give up. But now that I'm being familiar with angular2 and it's awesomeness, I really would like to replace it with Angular1. Do you think I should do it as soon as possible or wait for a stable release of Angular2?
PaulMartin
@paul-martin123
Are there any examples of parallel routing? I mean, is there a way to insert multiple components into a base component with one route definition?
Alexander Wieser
@crystalbyte
@paul-martin123 You can inject one component into another.
Chad Autry
@chad-autry
@crystalbyte I think he means something like have the header and footer be route based, but content in between be static.
PaulMartin
@paul-martin123
@crystalbyte I'm familiar with nested routing, but is there a way to insert two components with one router link?
Parallel routing was a major concern for AngularJS 1.x, and I've read docs that say it's possible with Angular2. But I haven't seen any code for it.
Alexander Wieser
@crystalbyte
@paul-martin123 I do use multiple components on a single route by simply adding them into the html source of the component.
<div>
<person-picker></person-picker>
</div>
Ken Rimple
@krimple
Anybody see this: "Cannot resolve all parameters for Router(?, ?, ?). Make sure they all have valid type or annotations." when using routing? I'm injecting ROUTER_PROVIDERS in the bootstrap method, and it had been working. What should I be checking for? The stack trace is not helping me out with any useful info to me... This started happening when I added another component to route to.
Alexander Wieser
@crystalbyte
@krimple Mind sharing some code ?
ROne
@ravi-mone
@krimple , I feel you should pass directives: [ROUTER_DIRECTIVES] in your component where routes are defined, Guys Am I correct
James Pacileo
@jamespacileo
Newbie question... Can a Components be selectively popped in a web worker or does it need to be the whole app?
Ken Rimple
@krimple
@ravi-mone - yep. I am doing that.
Getting component gist going.
Ken Rimple
@krimple
Finally, here it is. The files are in subdirectories as expected but gist doesn't allow it. Stack trace and bootstrap at bottom. https://gist.github.com/krimple/91189eb7a602996ca09c
@jamespacileo - good talk on this from Jason Teplitz - https://www.youtube.com/watch?v=Kz_zKXiNGSE - he shows what is / isn't in the web worker side of the stack and how you use it. Sample code too on github.
James Pacileo
@jamespacileo
@krimple awesome thank you! :smile: :+1:
Ken Rimple
@krimple
@jamespacileo Any time!
Robin Joseph
@robinjoseph08
I'm having a little trouble getting routerLink to work in a nested component. I have a root component that has a RouterConfig setting up my routes and the template is only <router-outlet></router-outlet>. In the child components, I'm trying to use <a [routerLink]="['Comp']"> while no errors get thrown, the href isn't generated. What's interesting though is that if I inject the Router in the child component's class, I can call this._router.navigate(['Comp']) and it works just fine. Am I just missing something?
Brandon
@brandonroberts
@robinjoseph08 routing in child components is relative. Try <a [routerLink]=“[‘../Comp']”> or <a [routerLink]=“['/Comp']”>
James Pacileo
@jamespacileo
@krimple really good speaker
Robin Joseph
@robinjoseph08
@brandonroberts I tried that too, and it didn't do anything either :/
Brandon
@brandonroberts
@robinjoseph08 Hmm. Can you reproduce in a plunker? Or share your route config?
@robinjoseph08 Do you have the router directives included in your child component directives?
Ken Rimple
@krimple
@jamespacileo I know, right? He's about 22, so I want so badly to call him sparky, but man he's so smart. I remember when I used to be bright eyed like that! Anyway, he was the guy who implemented the web worker code too. Looking forward to more videos by him.
Robin Joseph
@robinjoseph08
@brandonroberts ill try to get a plunker up. and yeah, I have directives: [RouterLink] in my child component
Daniel
@gaiottino
@ericmartinezr hmm. I'm not convinced. It feels very strange that Angular would or should pickup listeners from other libs. It doesn't seem to be that that is quite the case either. Because if I add it to a script-tag in index.html then it's not picked up. I tried adding it to a setTimeout but that still caused many many updates in Angular :-/
Brandon
@brandonroberts
@krimple do you have the router bundle included in your scripts?
Ken Rimple
@krimple
@brandonroberts yes... I am trying to get a plnkr together on it too, just to check my work.
Daniel
@gaiottino
Basically I want to catch if the DOM inside an ng-content tag has changed. How would I go about doing that?
Ken Rimple
@krimple
And it was working fine before, so something borked it. Just not sure what.
Brandon
@brandonroberts
@krimple remove Router from your bindings in the blogroll.ts
You don’t need it there
Ken Rimple
@krimple
oh dang, that's probably it.
oh, actually - I was injecting it in the constructor so I could chnage the route when I finished editing...
so if I am using a service, don't I need to add it as a binding in the component I'm injecting it into?
Brandon
@brandonroberts
Naa .. Since router providers is in your bootstrap you don’t need to add it as a binding
Its available to be injected anywhere
Ken Rimple
@krimple
btw that did it, @brandonroberts
Brandon
@brandonroberts
:+1:
Ken Rimple
@krimple
So, me dumb... ROUTER_PROVIDERS basically included the Router service?
coolio!
Brandon
@brandonroberts
Yep
Ken Rimple
@krimple
ok, many thanks, I knew it was dumb.
Brandon Angelakos
@bangelakos
Does anyone know when the additional parts of the official Angular.io tutorials will be complete?
Chad Autry
@chad-autry
Anyone else have issues where their app works fine on Chrome, but just won't work in Firefox (no error I can see) or IE (" ` " is an invalid character)
James Pacileo
@jamespacileo
@krimple 22! Glad Angular team is full of bright people :smile:
Sergey Kuzminskiy
@OverGreed

Hi guys, I have a question about binding data(ngModel). I am trying to make a simple example:
boot.ts:
import 'reflect-metadata';
import {bootstrap} from 'angular2/platform/browser';
import AppComponent from './app.component';
bootstrap(AppComponent);

app.component.ts:
import {Component} from 'angular2/core';
@Component({
selector:'my-app',
templateUrl: 'templates/app.component.html'
})
export default class AppComponent {
yourName: string = 't1';
test(){
console.log('click');
}
}

app.component.html:

<div>
<label>Name:</label>
<!-- data-bind to the input element; store value in yourName -->
<input type="text" [(ngModel)]="yourName" placeholder="Enter a name here" />
<hr>
<!-- conditionally display `yourName` -->
<h1 [hidden]="!yourName">Hello {{yourName}}!</h1>
<button (click)="test()">Test Click</button>
</div>

the problem is with ngModel always show t1 and never redraw it,
but if I press test button the value is changed it class.
The only different with examples it that I try to build project with Gulp and browserify.