4 ms·
Typically, you would integrate it with ASP.NET the same way you do any other Single-Page App not written in JS or Typescript. It ships with a dart2js compiler
by gte525u 13y ago
Typically, you would integrate it with ASP.NET the same way you do any other Single-Page App not written in JS or Typescript.
It ships with a dart2js compiler that you can use in VS. However, to really get the ease of development you're looking for you'd probably use VS to build/debug the backend, and additionally, the dart editor (special eclipse version) to debug the front-end. You'd have to enable your backend to support CORS calls for this type of setup. However, Once you are ready to deploy, the app builds to HTML/JS/CSS files that you can just embed normally in your solution.
I think what you're getting at is - is it better than JS or typescript + angular or backbone? It'd probably a matter of taste. The language is different from the "syntactic sugar" on top of JS that typescript is. Dart lets your bridge to standard JS libraries (i.e., Jquery etc), but, it also provides most of the functionality in the standard library. It provide a built-in unit test and logging framework and a nuget style repository of other libraries. Additionally, Dart's Polymer library provides an MVVM framework. You can define controls and combine into single-page webapps.