<html ng-app>
<head>
<title>ActiveTuts - AngularJs Tutorials</title>
<script type="text/javascript"
src="http://ajax.googleapis.com/ajax/libs/angularjs/1.0.7/angular.min.js"></script>
</head>
<body>
<div ng-controller="TodoCtrl">
<h2>Show and Hide the text using AngualrJs</h2>
<div ng-controller="TodoCtrl">
<input type="button" value="Show" ng-click="showText=true">
<input type="button" value="Hide" ng-click="showText=false">
<br/><br/><br/>
<div ng-show="showText">I am Ganeshkumar</div>
<div ng-show="!showText">Ok bye! See you later</div>
</div>
</div>
<script type="text/javascript">
function TodoCtrl($scope) {
$scope.showText = false;
}
</script>
</body>
</html>
Error: PG::DuplicateTable: ERROR: relation "taggings" already exists Solution : Already the table present in your database.But migration also trying to create a table in database.For this reason error occurred. So try to remove the table (taggings) from your database. postgresql : > DROP TABLE IF EXISTS taggings; Rails console : > ActiveRecord::Migration.drop_table(:taggings)
Comments
Post a Comment