last day (14 days later) » 

3:25 PM
1
A: Angular 2 : Cannot read property 'close' of undefined

AravindYou cannot access the parent components method from the child directly. Output() parameter is the best way to achieve your requirement. You code has to be modified as import { Component, Output, EventEmitter } from '@angular/core'; @Component({ moduleId:module.id, selector: 'navlin...

 
HGB
HTML markup and parent component are the same in your code?
I have updated the code above but nothing happens. No errors. Shouldn't <md-sidenav (parent) be listening for the event>
And how is it particularly targetting the #sidenav element to close it?
 
are you available in teamviewer?
 
HGB
Have not used it before, any alternatives?
 
google remote desktop. I can fix your problem remotely
 
HGB
I will be back at my desktop in 30mins. Would you be able to use plunker instead?
 
3:25 PM
ok, but your code is concerned about the navlinks or?
 
HGB
Many thanks, I really appreciate it .
 
 
2 hours later…
HGB
4:59 PM
Hi, can you give me a connection for teamviewer?
 
hi
one minute will give u
opening it
530 685 014
7074
are you there?
 
HGB
I am trying to connect but it doesn't seem to work
Try me:
537 076 266
tbp186
 
5:14 PM
it is not running n ur machine
 
HGB
Yes it is
But when I click on connect to partner button, nothing happens
 
firewall?
 
HGB
This thing is crap haha
 
hahaha
you say shall we proceed or?
 
HGB
Isn't there an easier way??? What's wrong with plunker? I am at a cafe, it could be a problem with my connection
I restarted the stupid app. So give it another go:
537 076 266
vak496
It says "Ready to connect" with a green button, so I am definitely on
 
5:17 PM
firewall or antivirus
check if something is blocking the connection
 
HGB
Ok you are on
 
I m on 100%
 
HGB
How do I grant you access?
 
you cannot grant access when u r in my machine
ping me here once you are ready
 
HGB
I have intalled the extension
But it does not work
 
5:27 PM
you logged in
?
open the app click on share you will get a authentication key
 
HGB
I have to download "yet another thing"
 
share that I can take remote of ur machine
 
HGB
Chrome Remote Desktop host or some other crap
 
omg!
dont knw
 
HGB
It keeps asking me to install it
 
5:29 PM
which?
 
HGB
this host stuff
I installed it twice, it doesn't accept it
Are you able to connect to
537 076 266
I was able to connect to yours no problem
vak496
 
one min
I think my machine needs a restart
chrome remote didnt work?
 
HGB
No it didn't. This cafe will close soon
All i need is to understand why I cannot target the #sitenav element
 
you cannot access that way dude
I can 100% assure you
 
HGB
It shows you as being offline on Teamwork
What do you mean acess that way? Which way?
I am just connected to the app. that is all. It shows you as being offline
 
5:34 PM
i only closed it
 
HGB
ok, you are signed in
 
invalid attempts caused it to work after 20 mins
 
HGB
You keep connecting and disconnected
 
wats wrong with remote desktop google?
 
HGB
It keeps asking me to install this host installer every time I click share
how do I connect???
 
5:36 PM
u get a key?
on clicking on share?
 
HGB
No it just keeps asking me to install this stuff time and time again which I do
and it leads to nothing
 
install it
after that u will get access code
share that to me
 
HGB
I did, and nothing happens
I have installed it 4 times!!
 
generate access code came?
reach me out in fb for further stuffs @ aravind2109. I m going to doze off I m from GMt+5.30 timezone
 
HGB
Ok it worked
I don't have a fb account
My code is: 313464156678
 
5:40 PM
yes
one min
 
HGB
Thanks mate
 
ok your method name is wrong
checkout properly
 
HGB
Which one:
session dropped: 578486014473
?
still there?
import { Component , EventEmitter, Input, Output, ViewEncapsulation } from '@angular/core';


@Component({
moduleId:module.id,
encapsulation: ViewEncapsulation.Emulated,
selector: 'navlinks',
templateUrl: 'menubtn.component.html',
styleUrls: [ './sitenav.component.css']

})
export class MenuBtnComponent {

@Output() buttonClicked : EventEmitter<any> = new EventEmitter();

close(value:any){
this.buttonClicked.emit("close");
}

entries = [];

constructor() {}

ngOnInit() {
this.entries = [
{
icon: 'home',
Well, I am going to have to go as they are closing. All this for nothing :-(
 

last day (14 days later) »