Toll Free: +1-855-656-NUVI

  • Alexander Ziskind

Have you ever written platform specific code in NativeScript, whether it was JavaScript or CSS? Did it look like a giant ifthenelse statement? Or maybe you even separated out your platform specific code into separate functions, but you still needed conditional statements and your code for iOS and Android still gets packaged up whether it’s destined for one platform or another. In this series of videos, I’ll show you how to avoid doing this altogether and get only the code you need for a specific platform packaged, all while using clean interfaces and TypeScript.

Continue
  • Alexander Ziskind

Do you manage your application state using the Flux pattern (now better knows as Redux, I supposed)? Well you should check it out since it will make your application state handling life much easier. @ngrx is a Redux inspired set of libraries for Angular. You’ll find exactly the same concepts used in @ngrx as you did in Redux: actions, reducers, and a single store. The difference here is that @ngrx is build on top of RxJS, so at the heart of the @ngrx store are observables. The @ngrx with NativeScript course on NativeScripting.com was just updated to the latest versions of everything! It’s a gentle introduction to using @ngrx in a NativeScript with Angular application.

Continue
  • Alexander Ziskind

A popular approach in JavaScript APIs these days is to pass a string that matches a property name as a parameter to some function. These are sometimes called ‘magic strings’ and they are very code smelly. In this article and video we will fix this problem.

Continue
  • Alexander Ziskind

This may sound familiar to you.

You’ve built an Angular web application for the browser, and then had to create a mobile application that has pretty much the same features. So you start from scratch, and maybe, just maybe, you can use some of the business logic code that you’ve already written in your mobile app. If you’re lucky.

If you want to be a good citizen of the code world, you need to learn how to recycle your code!

Continue
  • Alexander Ziskind



“Why is my ListView template binding not working?!!” You’re frustrated and you’re tearing your hair out. “It works on the web, but it doesn’t work here, in my NativeScript app! Why? I’ve gone over it with a fine-tooth comb, but still nothing!” If you’re using a ListView with a template and instead of nicely meaningful properties being displayed, all you’re seeing is the dreaded [object Object] in your list, this one simple trick can solve your problem. See what I did there? Now you HAVE to read this…

Continue