var regex = /(<([^>]+)>)/ig;
var htmlContent = "<p>test</p>";
var result = htmlContent.replace(regex, "");
console.log(result);
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var myApp = angular.module('myApp', []); | |
| myApp.directive('googleplace', function() { | |
| return { | |
| require: 'ngModel', | |
| link: function(scope, element, attrs, model) { | |
| var options = { | |
| types: [], | |
| componentRestrictions: {} | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (function() { | |
| 'use strict'; | |
| angular | |
| .module('myApp') | |
| .directive('googlePlaces', googlePlaces); | |
| /** @ngInject */ | |
| function googlePlaces(){ | |
| return { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| angular.module('engageAngularApp') | |
| .config(transformRequest) | |
| /** @ngInject */ | |
| function transformRequest($httpProvider) { | |
| // Enable cross domain calls | |
| // $httpProvider.defaults.useXDomain = true; | |
| // Remove the header used to identify ajax call that would prevent CORS from working | |
| // delete $httpProvider.defaults.headers.common['X-Requested-With']; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (function() { | |
| 'use strict'; | |
| angular.module('engageAngularApp') | |
| .config(httpInterceptor); | |
| /** @ngInject */ | |
| function httpInterceptor($httpProvider) { | |
| $httpProvider.interceptors.push('httpInterceptorFactory'); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (function() { | |
| 'use strict'; | |
| angular | |
| .module('myApp') | |
| .config(routeConfig); | |
| /** @ngInject */ | |
| function routeConfig($stateProvider, $urlRouterProvider) { | |
| $stateProvider |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (function() { | |
| 'use strict'; | |
| angular.module('engageAngularApp') | |
| .filter('searchByNameAndPhone', function(){ | |
| return function(items, searchString){ | |
| if(!searchString){ | |
| return items; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (function() { | |
| 'use strict'; | |
| describe('controllers', function(){ | |
| var scope, vm, state, $rootScope; | |
| // Initialize the controller and scope | |
| beforeEach(function () { | |
| // Load the controller's module | |
| module('AngularApp'); |
Apache appears to be listening on ::1 but not 127.0.0.1.
$ telnet localhost 80
Trying ::1...
Connected to localhost.
Escape character is '^]'.
$ telnet 127.0.0.1 80
Trying 127.0.0.1...
OlderNewer