实例代码“Ctrl+/”提示“F11/ESC”全屏 返回 格式化 恢复 运行
x
 
1
<html ng-app="mySuperApp">
2
    <head>
3
        <meta charset="utf-8">
4
        <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width">
5
        <title>手册网基础教程(shouce.ren)</title>
6
        <link href="/static/example/ionic.min.css" rel="stylesheet">
7
        <script src="/static/example/ionic.bundle.min.js"></script>
8
        <script type="text/javascript">
9
        angular.module('mySuperApp', ['ionic'])
10
        .controller('PopupCtrl',function($scope, $ionicPopup, $timeout) {
11
12
         // Triggered on a button click, or some other target
13
         $scope.showPopup = function() {
14
           $scope.data = {}
15
16
           // 自定义弹窗
17
           var myPopup = $ionicPopup.show({
18
             template: '<input type="password" ng-model="data.wifi">',
19
             title: 'Enter Wi-Fi Password',
20
             subTitle: 'Please use normal things',
21
             scope: $scope,
22
             buttons: [