Forked from Emanuel Sartor's Pen Erhpw.
A Pen by aaron k saunders on CodePen.
<html ng-app="ionicApp"> | |
<head> | |
<meta http-equiv="content-type" content="text/html; charset=UTF-8"> | |
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width"> | |
<title>Problem with form in tab content</title> | |
<link href="http://code.ionicframework.com/1.0.0-beta.6/css/ionic.min.css" rel="stylesheet"> | |
<script src="http://code.ionicframework.com/1.0.0-beta.6/js/ionic.bundle.min.js"></script> | |
</head> | |
<body ng-controller="MainCtrl as main"> | |
<ion-tabs class="tabs-positive"> | |
<ion-tab title="Tab 1"> | |
<ion-content> | |
<h1>Tab 1</h1> | |
<input type="text" id='something' placeholder="Some text" | |
ng-model="main.textValue"></input> | |
</ion-content> | |
</ion-tab> | |
<ion-tab title="Tab 2"> | |
<ion-content> | |
<h1>Tab 2</h1> | |
</ion-content> | |
</ion-tab> | |
</ion-tabs> | |
</body> | |
</html> |
Forked from Emanuel Sartor's Pen Erhpw.
A Pen by aaron k saunders on CodePen.
angular.module('ionicApp', ['ionic']) | |
.controller('MainCtrl', function() { | |
}); |