GithubHelp home page GithubHelp logo

ibhi / angular2-modal Goto Github PK

View Code? Open in Web Editor NEW

This project forked from shlomiassaf/ngx-modialog

0.0 2.0 0.0 415 KB

Angular2 Modal (dialog) window bootstrap style.

JavaScript 98.22% HTML 0.29% TypeScript 1.49%

angular2-modal's Introduction

Angular 2: Bootstrap Modal/Dialog window.

DISCLAIMER

Angular 2 is still in the works. The core concepts are solid, but the API may change. If you find that a code snippet that does not work, please message me, and I will update.

Built with angular 2, alpha 26

Click for the Demo

Blog post will be up soon! look for it in my Blog

See demo/components/App/App.ts for code examples.

Will try to add documented examples if time allows.

Running locally

git clone https://github.com/shlomiassaf/angular2-modal.git
npm install
gulp serve

Developing

git clone https://github.com/shlomiassaf/angular2-modal.git
npm install
gulp serve
gulp watch

Component is in src/BootstrapMoal, any change will automatically trigger a build. This is the case for the demo, where you check your changes. (Sorry, no unit tests)

Issues and TODO's

Animation

Not so complicated but not in angular 2 at the moment.

Minimize DOM interaction

Angular2 is all about components, it aims to provide a high-level API so the component builders will have minimal, if any, interaction with the DOM. I managed to use some of the methods in DynamicComponentLoader, but I other failed. Specifically, I couldn't insert an element inside another using the DynamicComponentLoader API. I will get back to it on next versions...

Bootstrap free / ShadowDOM

Make it fly solo....

Directive

the open method in Modal accepts an ElementRef object, if you supply one and configure the modal so it will show inside the element, you will get a modal bordered within an element. If the ElementRef is a directive it will not work, this is related to the fact that a Directive doesn't have View. This will be more clear going forward...

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.