GithubHelp home page GithubHelp logo

glanata / polymermvc Goto Github PK

View Code? Open in Web Editor NEW

This project forked from shawty/polymermvc

0.0 2.0 0.0 3.75 MB

Sample ASP.NET MVC4 application showing how to use Polymer.JS/Bootstrap and Angular.JS to make web components in an MVC4 project

C# 46.68% ASP 0.20% JavaScript 7.74% CSS 45.39%

polymermvc's Introduction

polymermvc

Sample ASP.NET MVC4 application showing how to use Polymer.JS/Bootstrap and Angular.JS to make web components in an MVC4 project

This is a simple ASP.NET MVC4 project, set up to use the new Polymer.JS platform stubs from google.

It's set up to show you a different way of creating re-usable web components in an MVC app and is designed to accompany my blog post which can be found here:

http://shawtyds.wordpress.com/2013/12/24/2013-year-end/

It demonstartes the simple core concepts of creating shadow dom enabled components that are portable from one MVC platform to another, and that rely entirely on HTML5 & Javascript to do thier thing.

The techniques used here require no complex setup's to allow your JS code to be sliced up and only included in the partials thier used in, or anything like that. You'll see that everything is driven directly from plain single view files, using the polymer method of loading these components.

Don't worry either if your browser doesn't yet fully support shadow dom, web components and HTML imports, polymer will make this work right now today (With some other new H5 goodies too) and will adapt itself to use the actual implemented specifications in any browser that supports it.

Beacuse of the HTML5 requirement, this lot wont work in anything less than IE9, and works great in all of the current up to date versions of the "Other Browsers"

Iv'e tested this in the following: Chrome - 31.0.1650.63 m Firefox - 26.0 Maxthon - 4.1.3.5000 IE - 11.0.2

Polymer and all it's parts is still in an early alpha stage at present, and you may find some bugs in the way things work.

For the most part however, everything has worked well for me.

If you use chrome://flags in your chrome browser, then scroll down and look for experimental web features then enable that, you'll get the actual shadow dom stuff enabled. AT the same time you might also want to enable the "HTML Imports" flag too. I did that (THe HTML Imports) however and found that the menu on the main polymer project site didn't work, so I disabled the imports (So I could read the docs) then re-enabled it afterwards.

As I learn to do new things with all this, I will update this repo as I progress, and I might even when I get time convert all the "Bower" packages to work from NuGet.

I also intend to make a PHP/Laravel version of this project, just to demonstrate that this stuff is easily cross platform enabled, but it may be a little while before I get there....

In the mean time, if you make any improvments or changes please feel free to send a pull request, let's all try to use this stuff to make MVC much easier and more encapsualted to use.

Shawty

polymermvc's People

Watchers

James Cloos avatar Gavin Lanata avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.