ASP.NET forums are moving to a new home on Microsoft Q&A, we encourage you to go to Microsoft Q&A for .NET for posting new questions and get involved today. Learn more >
It is shown by which tool? My guess is that it is just the Visual Studio HTML editor that just warn that ng-app is not a known HTML attribute. As pointed already using both Web Forms and Angular doesn't seems that a good idea. You have an existing web forms
app that you want to modernize?
If you ask me, I starting to even wonder if the current trend about piling up client side frameworks rather than taking advantage of all what HTML, CSS and JavaScript have to offer out of the box is really that a good idea.
Depends on the type of application and UI desired. This forum only needs JavaScript to create/edit a post. It’s perfect for html/css for 90% UI. But look at current email. They can be designed like this, but it’s not popular. Most want the web version to
match the desktop.
the more your app needs to act like a desktop, the more JavaScript required. Once the JavaScript is more code than the html/css you may need a framework.
Member
55 Points
191 Posts
2 warnings occur in angular js is not valid?
May 13, 2020 07:53 AM|prabhjot1313|LINK
how to start angular in my code 2 warnings occur ng-app is not valid in body?
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="WebApplication16.WebForm1" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<script src="Scripts/angular.js"></script>
</head>
<body ng-app >
<form id="form1" runat="server">
<div>
</div>
</form>
</body>
</html>
Contributor
3050 Points
901 Posts
Re: 2 warnings occur in angular js is not valid?
May 14, 2020 03:31 AM|Sean Fang|LINK
Hi prabhjot1313,
I suggest you consider not adding angular to webforms project as angular and webforms both have their own functionalities.
More details, you could refer to a prievious thread:
Using Angular with asp.net 4.5 Web Forms
Hope this can help you.
Best regards,
Sean
All-Star
48740 Points
18196 Posts
Re: 2 warnings occur in angular js is not valid?
May 14, 2020 10:50 AM|PatriceSc|LINK
Hi,
It is shown by which tool? My guess is that it is just the Visual Studio HTML editor that just warn that ng-app is not a known HTML attribute. As pointed already using both Web Forms and Angular doesn't seems that a good idea. You have an existing web forms app that you want to modernize?
If you ask me, I starting to even wonder if the current trend about piling up client side frameworks rather than taking advantage of all what HTML, CSS and JavaScript have to offer out of the box is really that a good idea.
All-Star
58484 Points
15810 Posts
Re: 2 warnings occur in angular js is not valid?
May 15, 2020 01:50 AM|bruce (sqlwork.com)|LINK
Depends on the type of application and UI desired. This forum only needs JavaScript to create/edit a post. It’s perfect for html/css for 90% UI. But look at current email. They can be designed like this, but it’s not popular. Most want the web version to match the desktop.
the more your app needs to act like a desktop, the more JavaScript required. Once the JavaScript is more code than the html/css you may need a framework.