-
Notifications
You must be signed in to change notification settings - Fork 133
Successful integration with angular-cli project #31
Comments
👍 Thanks @arproudlock, I've added a link from the readme to this issue for an example using angular-cli. You're awesome! |
This was helpful but it looks like things have changed with the CLI. I am using version 1.0.0-beta.1: |
I'm trying to adhere to the "do not use jQuery" recommendation so will look around for a "pure" Angular 2.0 modal if one is available. |
I have followed all the sets mentioned in Post 1 and 3 but I get the following error. My files can be found in this post. Should I make any changes to my files to make Modal work? |
Hi Sudhashri, you can get rid of this error by using |
Adding |
I am not able to make this work still. Here are the steps I did.
The moment I try to tweak packages to add I start getting this error : zone.js:101 GET http://localhost:4200/vendor/@angular/platform-browser-dynamic.js 404 (Not Found)
I start getting this error: Pl help. I have tried a clean install and tweaking many things but cannot get this to work. Can someone will more expertise help everyone by cleaning up the instructions. |
Any update ? |
I have a working angular-cli demo here: https://github.com/dougludlow/ng2-bs3-modal-demo-angular-cli |
Apologies in advance. This is not an issue, wasn't sure where to put this, but might be helpful for some:
Step 1: Install
npm install --save ng2-bs3-modal
Step 2: Include in Vendor files
Open ember-cli-build.js
include 'ng2-bs3-modal' in vendorNpmFiles array:
Step 3: Build
ng build
Check
/dist/vendor
for ng2-bs3-modal folderStep 4: Include Scripts and CSS in index.html
Open index.html
In the head include:
In the body (with the other script src tags) include:
Step 5: System.js
In index.html, in
System.config({})
add 'ng2-bs3-modal' to packages and map.Example:
Step 6: Import in component ts file and include in directives array
import { MODAL_DIRECTIVES} from 'ng2-bs3-modal/ng2-bs3-modal';
directives: [ROUTER_DIRECTIVES, CORE_DIRECTIVES, MATERIAL_DIRECTIVES, MODAL_DIRECTIVES],
Should now be able to use ng2-bs3-modal with you angular-cli project.
The text was updated successfully, but these errors were encountered: