diff --git a/README.md b/README.md index ef4a14c..64b2a52 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,16 @@ Angular2 Bootstrap3 Modal Component ## Demo http://dougludlow.github.io/ng2-bs3-modal/ +## Requirements + +`ng2-bs3-modal` depends on bootstrap which depends on jquery, you'll need to include both scripts before ng2-bs3-modal: + + + + + +Or, if you're using systemjs, configure it to load them. And import them in your typscript. + ## Install npm install ng2-bs3-modal diff --git a/dist/components/modal-footer.js b/dist/components/modal-footer.js index c4a3d1f..a66cc55 100644 --- a/dist/components/modal-footer.js +++ b/dist/components/modal-footer.js @@ -21,6 +21,7 @@ var ModalFooterComponent = (function () { ModalFooterComponent = __decorate([ core_1.Component({ selector: 'modal-footer', + styles: ["\n .btn[hidden] { display: none; }\n "], template: "\n
\n \n \n \n
\n " }), __metadata('design:paramtypes', [modal_1.ModalComponent]) diff --git a/dist/components/modal-footer.js.map b/dist/components/modal-footer.js.map index 1087992..2e61e6a 100644 --- a/dist/components/modal-footer.js.map +++ b/dist/components/modal-footer.js.map @@ -1 +1 @@ -{"version":3,"file":"modal-footer.js","sourceRoot":"","sources":["../../src/components/modal-footer.ts"],"names":["ModalFooterComponent","ModalFooterComponent.constructor"],"mappings":";;;;;;;;;AAAA,qBAA6D,eAAe,CAAC,CAAA;AAC7E,sBAA+B,SAAS,CAAC,CAAA;AAEzC;IAYIA,8BAAoBA,KAAqBA;QAArBC,UAAKA,GAALA,KAAKA,CAAgBA;QADVA,uBAAkBA,GAAYA,KAAKA,CAACA;IACtBA,CAACA;IAD9CD;QAACA,YAAKA,CAACA,sBAAsBA,CAACA;;OAACA,oDAAkBA,UAAkBA;IAXvEA;QAACA,gBAASA,CAACA;YACPA,QAAQA,EAAEA,cAAcA;YACxBA,QAAQA,EAAEA,+YAMTA;SACJA,CAACA;;6BAIDA;IAADA,2BAACA;AAADA,CAACA,AAbD,IAaC;AAHY,4BAAoB,uBAGhC,CAAA"} \ No newline at end of file +{"version":3,"file":"modal-footer.js","sourceRoot":"","sources":["../../src/components/modal-footer.ts"],"names":["ModalFooterComponent","ModalFooterComponent.constructor"],"mappings":";;;;;;;;;AAAA,qBAA6D,eAAe,CAAC,CAAA;AAC7E,sBAA+B,SAAS,CAAC,CAAA;AAEzC;IAeIA,8BAAoBA,KAAqBA;QAArBC,UAAKA,GAALA,KAAKA,CAAgBA;QADVA,uBAAkBA,GAAYA,KAAKA,CAACA;IACtBA,CAACA;IAD9CD;QAACA,YAAKA,CAACA,sBAAsBA,CAACA;;OAACA,oDAAkBA,UAAkBA;IAdvEA;QAACA,gBAASA,CAACA;YACPA,QAAQA,EAAEA,cAAcA;YACxBA,MAAMA,EAAEA,CAACA,iDAERA,CAACA;YACFA,QAAQA,EAAEA,+YAMTA;SACJA,CAACA;;6BAIDA;IAADA,2BAACA;AAADA,CAACA,AAhBD,IAgBC;AAHY,4BAAoB,uBAGhC,CAAA"} \ No newline at end of file diff --git a/package.json b/package.json index c408bf8..77f4825 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ng2-bs3-modal", - "version": "0.1.0", + "version": "0.1.1", "description": "Angular2 Boostrap3 Modal Component", "main": "dist/ng2-bs3-modal.js", "scripts": { @@ -36,5 +36,8 @@ }, "dependencies": { "angular2": "^2.0.0-beta.3" + }, + "peerDependencies": { + "bootsrap": "3.3" } }