-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is it compatible with Angular2? #18
Comments
@xLama - I'm sorry; I have not tested any Angular code in LiveEdit; I have no idea what issues you might see with it. Does the watcher.js show that it is syncing any files? A couple notes:
|
Yeah, watcher is syncing files. I run Android Emulator and LiveEdit (node watcher). When I "compile" TypeScript file, watcher does not do anything but when compilation ends, watcher sees changes and it push to emulator correctly. I will keep you informed about my progress, |
I tested it with nativescript angular2 and it didn't work and the below is the result
I just changed the I didn't read the source of plugin and I don't know how exactly it works,but I think if it founds an error in a file it will not deploy it to device so it finds errors in |
If you open up the .jshintrc file; you can make the checks less strict. Or, if you really want the jshint checker disabled; I can add a option in the next version to disable it. However, I would just recommend you just make jshint a little less picky... ;-) |
Hey @NathanaelA so should this work with ng2 with amendments to jshint? |
I removed the error checking from watcher.js by commenting some lines from
and renamed the |
@bnussey I believe so. Most the issues in the past with TS code was that JSHint was too strict for TS generated JS. (TS does a couple things that JSHint by default doesn't like). If you tell JSHint to ignore those items it normally works fine with TS generated code. See issue #5 for a JSHintrc file that works for another guy with TypeScript.. |
@kazemihabib LiveEdit doesn't restart the app on xml changes; the idea is to reload the screen so that you see the changes. However LiveEdit is unaware of HTML files, and how to cause the screen to reload. I have not played with NS-Angular yet; it is on my list -- but just haven't made the time. Once I actually play with it; I'm sure I'll figure out these types of issues and get LiveEdit to be a first class citizen with NG2 code like it is currently with the standard code. |
Awesome thanks for the response @NathanaelA, really appreciate it, I'll give that a shot and go from there. |
The new version should have working TSLint support now; however, I haven't done any additional Angular2 support in it. |
Hi @bnussey I was wondering did you manage to get this to work with ng2? Thanks! |
At this moment it is still not NG2 compatible. In fact the ts support is not actually working well in the currently released version. I'm currently making it work well with TS code; the next version (unreleased) will have its own TS watcher/compiler built in, and smarts to not send a JS file when the TSLint failed. I'm using it myself in a ts based project and fixing the issues. |
Hey @iamnotagit yeah unfortunately I did not get it going. |
@NathanaelA @bnussey Thanks for your responses! |
Ok, I have TS support as a first class citizen now. That was a prerequisite to getting Angular support working. The current 2.2.0 release I've been using for a couple weeks and I'm happy with the TS support. |
This tool looks really powerfull. |
The Angular2 version has not been built yet. I needed to make sure all my TS support was working fully. I'm pretty happy with it; but I suspect I won't have time to touch NG2 support until mid to late next month (Oct). When it is built, it will be released on Patreon. ;-) I'm guessing v2.4 or 2.5 will have the 🆖 2 support. I will update this thread when 🆖 support is working... 😀 |
12 October :D I told my client about this plugin, so really want to use it with our ng2 project. |
I have actually started on Angular2 support; part of the code now works properly; but there is a lot more I need to do. 🆖 has hooked into the NS system and is not using the standard NS way of doing some things... Once I figure out where the info is stored that was used to build the current screen (or how to hijack the info so I can store it); it should be working fully. Unfortunately the 🆖 templates don't conform to proper XML; so I also have to figure out how I want to test the .html files... But all this is a very low priority since it is not paid work and none of my upcoming jobs are ng related... |
NG2 support would be really nice and helpful because official livesync is really slow :( |
I noticed that if I use Angular2 NativeScript plugin, app needs to be restarted to show changes. There is not a realtime sync. Maybe I am doing something wrong.
To avoid restarting I must exclude Angular2 bootstrap file in tsconfig.json but app does not show changes. If I don´t exlude it, I can see changes after a restart
Tell me if you need more info.
Thanks.
The text was updated successfully, but these errors were encountered: