UNPKG

angular-redactor

Version:
21 lines (17 loc) 578 B
'use strict'; angular.module('app', ['ngRoute', 'angular-redactor']) .config(['$routeProvider', function ($routeProvider) { $routeProvider .when("/", { templateUrl: "views/main.html", controller: "RedactorDemo"}) .otherwise({ redirectTo: "/" }); }]); angular.module('app') .controller('RedactorDemo', ['$scope', function ($scope) { $scope.redactorOptions = { }; $scope.changeContent = function () { $scope.content = "<h1>Some bogus content</h1>" } $scope.content = "<p>This is my awesome content</p>"; }]);