Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • Difference between Polymer elements and AngularJS directives

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 3.88k
    Comment on it

    Polymer Elements are know as scope because of they act as an hidden tree in their dom. That means you can't predict their style and dome. However Angular is not scoped to that particular directive you can create like a polymer web component. An angular directive could possibly conflict with something in your global scope.
    As we use Polymer and by the structure it shows that it relies on the Web Components, and the web component which are only supported by new mobile device only, But in case of AngularJS tries to use the similar operations, and simpler functionality with its Directives


    And the reason we use Angular Directive because when we use this to construct new variables we have multiple ways to explain it. In Polymer web components this is not possible. If you want to combine functionality of components you include two components into another component (or wrap them in another component), you can extend an existing component only. You can share css & js files across several components or you can inline them.


    With the Angular it gives you to develop and deploy higher that can make communication between server and enables routing and many others.These are know as high- level services.
    Polymer, on the other hand, doesn't provide these things except as separate web components from their core library. Instead, it focuses on allowing you to create rich, powerful, reusable web components, which could be used to build webapps like those which are built with Angular. In the future, the lines could be blurred further as frameworks like Angular may leverage Web Components.

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: