Advertisement
Guest User

Untitled

a guest
Oct 20th, 2014
234
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. <button clip-copy="getTextToCopy()" clip-click="alertMes()">
  2. Click to Copy
  3. </button>
  4.  
  5. var adAssetModule = angular.module('adAsset', ['ngRoute']);
  6. AssetModule.config(['$routeProvider', function ($routeProvider) {
  7. $routeProvider.when('/', {
  8. controller: 'assetsController',
  9. templateUrl: '/app/index.html'
  10. })
  11. .otherwise({ redirectTo: '/' });
  12.  
  13. }]);
  14.  
  15. adAssetModule.controller('assetsController', ['$scope', 'dataFactory',
  16. function($scope, dataFactory){
  17. ....
  18. }]);
  19.  
  20. var copyApp = angular.module('clip', ['ngClipboard']);
  21. copyApp.controller("Main", function($scope){
  22. $scope.getTextToCopy = function() {
  23. return $scope.text;
  24. };
  25. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement