Does angular 2.0 store values of variables on server side? -


i cloned official angular 2.0 quick start projectand try add side-navigation panel. created simple component wich contains following:

export class appcomponent {     menuvisible: boolean = false;     togglevisible() { this.menuvisible = !this.menuvisible; } } 

and simple template (pug):

side-navigation([class.visible]="menuvisible === true")      div(*ngif="!menuvisible", (click)="togglevisible()", style="cursor: pointer; font-size:1vw") ☰     ul(*ngif="menuvisible") 

but when i've tried test component weird issue: click open dide panel button in google chrome (just example issue not depend on browser), see side-navigation bar opens in browser (edge). don't know how fix it. problem or kind of bug?

that browsersync feature of server.

see


Comments

Popular posts from this blog

sql server - Cannot query correctly (MSSQL - PHP - JSON) -

php - trouble displaying mysqli database results in correct order -

C++ Linked List -