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
| 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('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
| var myApp = angular.module('myApp', []); | |
| myApp.directive('googleplace', function() { | |
| return { | |
| require: 'ngModel', | |
| link: function(scope, element, attrs, model) { | |
| var options = { | |
| types: [], | |
| componentRestrictions: {} | |
| }; |
NewerOlder