html - Visual Studio 2013 Capitalization Rules -
i have been working on learning angular2 project using great blog post, cross-platform single page applications asp.net core 1.0, angular 2 & typescript.
i created app.html file following html
<div class="container"> <div class="navbar-header"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1"> <span class="sr-only">toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <a class="navbar-brand" [routerlink]="['/home']"><i class="fa fa-home fa-fw"></i> photo gallery</a> </div> </div>
when highlight code , choose format selection code formatted following.
<div class="container"> <div class="navbar-header"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1"> <span class="sr-only">toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <a class="navbar-brand" [routerlink]="['/home']"><i class="fa fa-home fa-fw"></i> photo gallery</a> </div> </div>
if can see routerlink attribute has been formatted lowercase breaks angular2 routing. have seen happen when save file, html auto formatted.
i have tried setting properties in tools-> options->text editor -> html (web forms) -> formatting , change of capitalization settings "as entered" did not fix issue.
Comments
Post a Comment