Skip to end of metadata
Go to start of metadata

Icon

Titanium Angular is currently in an early preview stage. This means that some features are still under development or already available features may still be buggy. 

TypeScript API

The TypeScript type definitions are generated from our API documentation. They are brand new and Titanium Angular is the first project to makes uses of those typings. We couldn't possibly test all available APIs for the first preview release so you may encounter some typings that are just wrong or they behave differently than you may know it from JavaScript. In those cases the easiest workaround is to explicitly cast the variable to the any type, so you can do whatever you want with it.

Casting Titanium types to any

Oh, and don't forget to file a bug report under the FRAME project in Jira so we can fix it! Community help is always welcomed!

Working with Titanium elements

The basic features of all elements under the UI namespace are supported as of now. However, some platform specific views are still missing. Please refer to the following list to see which elements are NOT yet supported in templates (you can still create them programmatically in your components):

  • Android
    • DrawerLayout
    • ProgressIndicator
    • SearchView
  • iOS
    • CoverFlowView
    • NavigationWindow
    • SplitWindow

Accessing the Titanium view/proxy of template elements

Sometimes you need to access the underlying Titanium view/proxy of template elements. To do so you can use the ViewChild/ViewChildren decorators from Angular in combination with the AfterViewInit lifecycle hook. First assign a template reference variable to the element you want to access and then retrieve the Titanium object instance via the .nativeElement.titaniumView property.

Configuring template elements programmatically

One thing you may be missing if you are familiar with Alloy are some convenient features to configure your views directly from the template. For example, in Alloy you can do the following to configure a text fields button:

Titanium Angular currently does not currently support this, but it is on our To-Do list. In the meantime you can utilize the AfterViewInit lifecycle hook of your component to further configure it's view.

Titanium Router

Currently you can only use the Angular's routing feature for normal window and tab groups. Platform specific navigation components like the NavigationWindow on iOS are not yet supported. The support to open modal windows is also not yet implemented.

  • No labels