angular.module('user_forms_center', []) .controller('userFormsCenterCtrl', ['$scope','$routeParams', '$compile', function($scope, $routeParams, $compile){ $scope.type = $routeParams.type; //由于设置高度产生滚动条,注释之 //$scope.$on('$viewContentLoaded', function() { // $('div.split_form').height($(document).height() - 52); // $(window).resize(function(){ // $('div.split_form').height($(document).height() - 52); // }); //}); $scope.show_saved_form = function(){ var $form = $('
'); $('div.form_container').html($form); $compile($form)($scope); } }]);