Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <button clip-copy="getTextToCopy()" clip-click="alertMes()">
- Click to Copy
- </button>
- var adAssetModule = angular.module('adAsset', ['ngRoute']);
- AssetModule.config(['$routeProvider', function ($routeProvider) {
- $routeProvider.when('/', {
- controller: 'assetsController',
- templateUrl: '/app/index.html'
- })
- .otherwise({ redirectTo: '/' });
- }]);
- adAssetModule.controller('assetsController', ['$scope', 'dataFactory',
- function($scope, dataFactory){
- ....
- }]);
- var copyApp = angular.module('clip', ['ngClipboard']);
- copyApp.controller("Main", function($scope){
- $scope.getTextToCopy = function() {
- return $scope.text;
- };
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement