This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 253933 - When I use alias in ng-controller (ng-controller="HomeController as hc"), formatting in the script tags is not working.
Summary: When I use alias in ng-controller (ng-controller="HomeController as hc"), for...
Status: REOPENED
Alias: None
Product: web
Classification: Unclassified
Component: AngularJS (show other bugs)
Version: 8.0.2
Hardware: PC Windows 7
: P4 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-29 08:20 UTC by heminei
Modified: 2015-09-09 11:29 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (248.21 KB, text/plain)
2015-07-29 08:20 UTC, heminei
Details
Print Screen (53.62 KB, image/png)
2015-08-10 07:39 UTC, heminei
Details
HTML demo code (1.50 KB, text/html)
2015-08-10 07:40 UTC, heminei
Details

Note You need to log in before you can comment on or make changes to this bug.
Description heminei 2015-07-29 08:20:45 UTC
Product Version = NetBeans IDE 8.0.2 (Build 201411181905)
Operating System = Windows 7 version 6.1 running on amd64
Java; VM; Vendor = 1.8.0_25
Runtime = Java HotSpot(TM) 64-Bit Server VM 25.25-b02
Comment 1 heminei 2015-07-29 08:20:51 UTC
Created attachment 155000 [details]
IDE log
Comment 2 Vladimir Riha 2015-08-07 14:47:35 UTC
Could you please try it in 8.1 Beta (from http://download.netbeans.org/netbeans/8.1/beta/ ) and if reproducible, attach here a sample to reproduce it? Thank you
Comment 3 heminei 2015-08-10 07:39:28 UTC
Created attachment 155238 [details]
Print Screen
Comment 4 heminei 2015-08-10 07:40:17 UTC
Created attachment 155239 [details]
HTML demo code
Comment 5 heminei 2015-08-10 07:45:54 UTC
The problem in 8.1 Beta is almost fixed. The only thing it does is it adds additional "tabs". I've attached HTML and a screenshot with the problem.
Comment 6 Roman Svitanic 2015-08-11 13:07:56 UTC
This occurs regardless of the "controller as" usage, same applies for the plain "controller". It is caused by formatting of the virtual JS source behind the scenes.

As a simple workaround please move <script> outside the controller.