Advertisement
Guest User

Untitled

a guest
Feb 27th, 2017
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 0 0
  1. app.js
  2. angular.module('starter', ['ionic','ionic-native-transitions','starter.controllers'])
  3.  
  4. .run(function($ionicPlatform) {
  5. $ionicPlatform.ready(function($window) {
  6. if(window.cordova && window.cordova.plugins.Keyboard) {
  7. cordova.plugins.Keyboard.hideKeyboardAccessoryBar(false);
  8. cordova.plugins.Keyboard.disableScroll(true);
  9. }
  10. if(window.StatusBar) {
  11. StatusBar.styleDefault();
  12. }
  13. });
  14. })
  15. .config(function($stateProvider,$ionicNativeTransitionsProvider,$urlRouterProvider,$ionicConfigProvider) {
  16. .state('chat', {
  17. url: '/chat',
  18. nativeTransitions: {
  19. "type": "flip",
  20. "direction": "up"
  21. },
  22. templateUrl: 'templates/chat.html',
  23.  
  24. })
  25.  
  26. HTML
  27. <div ui-sref="chat" class="title" >
  28. <a class="underline" ui-sref="chat" native-transitions>
  29. <img class = "title-image" src="img/Chat@1x.png"></img>
  30. <p class="imgtext" style="color: rgb(102, 0, 0)">Chat</p>
  31. </a><br>
  32. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement