WebSharper Examples Using TypeScript Bindings
Ryan,

I'd be interested if you could elaborate on the benefits (if any) of using Angular.js when you work with WebSharper?

My feeling is that Angular.js can't even touch WebSharper in terms of functionality nor robustness, though I may be missing something.

Thanks,

David
By on 6/27/2013 11:41 AM ()
In addition to phil j's comment, I would like to point out that angular is a framework built on top of several emerging standards for evolving HTML. The polymer project provides a number of browser polyfills to allow you to use things like shadow DOM, template tags, all part of the Web Components spec. It also provides Model Driven Views and Web Animation, along with several others. Angular is built with the same ideas and is getting moved on top of polymer.

Angular TypeScript bindings are available. I'm not sure about polymer. I also don't think it necessarily wise to build yet another framework directly on top of any compile-to-javascript language without getting a good feel for what advantages you could obtain. Thus, I would love using the Angular bindings to generate apps I would otherwise write with HTML and JS.

It's possible that doing this would inform some really cool options directly through WebSharper, removing the Angular dependency entirely. Of course, you then lose the benefit of a fairly substantial team effort building a framework like Angular.
By on 6/30/2013 11:50 AM ()
Angular extends html in a great way, providing a binding framework, declarative animations, easy routing, large number of third party extensions/directives etc.
Angular Controllers would be great in f#, being just a function having Services automatically injected as arguments, being able to share code, domain model and call rpc methods with the Server side.
And writing directives using Websharper would be a charm.
I believe Websharper and Angular could fit very well together. This idea also goes trough my head for quite some time now :)
By on 6/29/2013 3:39 AM ()
Nope, but they should exist :) We'll work on these, any help would be appreciated. We'll release the TypeScript type provider with WebSharper 2.5, and of course I can send you an early version any time before then to play with.

Thanks, Adam.
By on 6/4/2013 5:48 AM ()
Any chance I could get a peek at the early bits? I would be happy to help out, though I think I'd be better suited to helping get W# running on OWIN.
By on 8/6/2013 9:33 PM ()
is this typescript-provider available somewhere? any source?
By on 6/27/2013 8:41 AM ()
The type provider would help with an upcoming workshop. :) Any other fun new features I should demonstrate? I'll be converting a C# ASP.NET app to Web API and F# -> HTML+JS.
By on 6/4/2013 6:11 AM ()
IntelliFactory Offices Copyright (c) 2024 IntelliFactory. All rights reserved.
| | | Trainings | | |
Built with