_id
stringlengths
2
6
text
stringlengths
4
46k
title
stringclasses
1 value
d10901
Utilize this piece of code: return services.AddSwaggerGen(c => { c.CustomOperationIds(e => $"{e.ActionDescriptor.RouteValues["action"]}");
d10902
I think it's because your way to writing data in files. Working with files has 3 step: 1) Opening file 2) Read [from] / Write [to] file 3) Closing file third step is what you don't handled it. You want to write a list in file and you are opening that file in each iteration. It's not a good idea (opening and closing fil...
d10903
Okay, sticky bit's comment pointed me to the right solution. Thank you very much! When specifying the ScanID with the table name/alias, then it is not considered as the SP Parameter "ScanID", but as a field name. Solution: DELETE FROM tbl_xmlfiles x WHERE x.`ScanID`=ScanID; Can someone clarify, why the MySQL Parser th...
d10904
You could use this for a 3d plot: ezsurf('x*sin(x*y)', [0,5,pi,2*pi]) You can also use ezmesh with the same arguments to draw the mesh only (with a transparent surface)
d10905
I don't know if this helps you but the way I was able to automate python scripts on my web server was by using a windows 2016 server. Then creating a .bat file that would run the script like this. Just make sure your file location is set correctly. python C:\inetpub\wwwroot\top_10_week.py %* Then use windows task sche...
d10906
You can use the collections.Counter class to help with counting: from collections import Counter in_str = '''5' TCAGATGTGTATAAGAGACAGTGCGTATTCTCAGTCAGTTGAAGTGATACAGAA :: ::: :: : : : ||||| : 3' ATTCAGCCTGCACTCGTTACCGAGGCATGACAGAGAATTCACGTAGAGGCGAGCTAAGGTACTTGAAA...
d10907
GetObject takes a resource name, not an index. You need to construct the name of one of your resources. The simplest way to do that is to name the resources Card0 through Card51 and call GetObject("Card" & CInt(LoopIndexInteger)) EDIT: You can also loop over My.Resources.ResourceManager.GetResourceSet(CultureInfo.Curre...
d10908
I think this is due to the fact one (or more) item(s) is (are) being submitted in the collection you're trying to delete. To check that, you can run the following PSQL query: select workspace_item_id, item.item_id, submitter_id, handle from workspaceitem, item, handle where workspaceitem.item_id = item.item_id and han...
d10909
The answer to this problem is to update Angular libraries versions (in my case from 5.1.0 to 5.1.1).
d10910
The question here would be are you dead set on creating a 'model' or an automation works for you? I would suggest ordering the dataframe by probability of picking the call every hour (so you can give the more probable leads first) and then further sorting them by number of calls on that day. Something along the lines o...
d10911
Disregard, found out during the CurrentItem: Quantity lookup i had set the part name to string instead of lookup value.
d10912
You should do something as shown below: #include <string> struct Input_Interface { struct command_output { std::string command; void (*output_function)(); }; static void Clear(); static void Quit_loop(); }; int main() { Input_Interface::command_output t = {"CLEAR", Input_Interface::Cle...
d10913
ARBCreateSubscriptionRequest has parameter "startDate" where you can set date the subscription begins. If first price should be different from monthly payments you can also set parameter "trialAmount" for first payment All information you can find here http://www.authorize.net/support/ARB_guide.pdf A: You should alway...
d10914
You don't necessarily know that id2 is the third argument; it's the last argument. You can gather all the intervening arguments into a single tuple using extended iterable unpacking. Once you have the tuple of middle arguments, you can join them back together. id1, *names, id2 = input_valores.split() list_a["id1"] = i...
d10915
Some phones include the rotation information, some phone don't, but the best way to know on videos that include this information is with mediainfo: mediainfo --Inform="Video;%Rotation%"
d10916
Use: sum(*/*/*[. >=0]) and sum(*/*/*[not(. >=0)]) Here is a complete transformation that uses these two relative XPath expressions: <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output omit-xml-declaration="yes" indent="yes"/> <xsl:strip-space elements="*"/> <xsl:template ma...
d10917
Now site is working but showing nothing is here I think at that time server has got to many requests that's why it cannot be reached .
d10918
Using reformulate will be helpful. reformulate(names(tbest$model)[-1], 'encounter') If the list of variable names are in x : reformulate(x, 'encounter') encounter ~ open_shrubland + Appalachian_Mountains + Boreal_Hardwood_Transition + Central_Hardwoods + Piedmont + wetland + Badlands_And_Prairies + Peninsul...
d10919
while (c > 0){ ... c++; } This is going to cause an infinite loop. The segmentation fault is from reading symbols[4], which is an access violation. I strongly recommend learning how to step through code in a debugger if you want to use this language. Good luck!
d10920
You have infinite loop at while (filled == false) { ... }, because filled_f always sets filled to false (and the else if branch of the condition inside this loop as well does so). It's because you most likely missed figure brackets when writing else if block in filled_f. Your indentation hints that you wanted 2 stateme...
d10921
Thanks for all of your opinion. I have tried use another way from Combine columns in matrix having same column name. I think it's more suitable for my case, and don't take lot of time to execute. nms <- colnames(tf_mat) tf_mat_bind <- sapply(unique(nms), function(i)rowSums(tf_mat[, nms==i, drop=FALSE]))
d10922
Use on to bing all your div scrollbar, including the dynamically created div. $(document).on('scroll','.divClass', someFunction); The .divClass must be present on all your container where you want to execute the someFunction function.
d10923
For performance is better foreach cycle. Visit this site with some benchmark of php and see which cycle is better for you: http://www.phpbench.com/ A: If you're getting timeout (infinite loops) errors, neither while or foreach will do. You're better off looking at limiting how much your array is processed, and do it s...
d10924
Well one method would be to set up replication from each of them to a single database. But that seems pretty time intensive. I think you might have to write a program to do it (either .net or SQL) because how would it know which record to take if you have two records with the same primary key? If you know that there wi...
d10925
The issue is that the path for the log file is hard coded in the source code, as can be seen on github. The path C:\\tmp does however not exist per default in windows. Simplest solution is just to create a tmp folder on your C drive
d10926
Hm. Gallery1.Selected represents the entire record in the Sharepoint List. Can you add another . to Selected to get to the actual field you want to write? Gallery1.Selected.Attendee (or the like) A: Got it: Patch('Child List', Defaults('Child List'), { Title:"test", ParentItem: { Id:Gallery1...
d10927
I just found out the answer to that. In useStyles (styles in my code) I added marginRight: 700, to root class. Then the stepper stretched. const useStyles = makeStyles((theme) => ({ root: { width: '100%', marginRight: 700, }, Now it's look like this.
d10928
I was able to solve my problem. After pouring through the issues in Zurb's Github, I found a semi-related issue that was fixed in a recent pull request. On a whim I merged it into my code, and it fixed the issue. See here: https://github.com/seantimm/foundation/commit/7af78ddbcc5a516eafed588e7c17d90bee115567
d10929
You can try like this: insert into mytable(Translation) (select to_char(Translation) from sometable); or like insert into mytable(Translation) (select to_char('yourValue') from dual);
d10930
This got solved by upgrading Composer version to 2. Jfrog throwing error when there is composer version 1.x while pulling Artifact. Sometime an OS doesn't easily upgrade to Composer 2 due to missing CA certificates. Can follow below steps: * *cd /etc/pki/tls/certs *check ca-bundle.crt file is there or not: file /etc...
d10931
Your host probably has error reporting turned off, try turning on error reporting with ini_set('display_errors',1); error_reporting(E_ALL|E_STRICT); at the top of your file, or check for a file called error_log in the directory of your script.
d10932
"(aaa)bb\\1". You need to escape the backslash. A: Both C++ and the regex use \ as an escape character. When you use it in your string C++ is interpreting it as octal character constant 1. You'll need to double escape the 1: std::string regx="(aaa)bb\\1"; A: In addition to needing to escape your backslash: Boost::reg...
d10933
You have provide only a pseudo-code. You should have provide your actual code so that I may have guided you better. Anyhow you may use the following short form for your long swith statement. var cases = { 1: doX, 2: doY, 3: doN //......................cases from 4 to 19 20: doZ }; if (cases[somethi...
d10934
#include <stdio.h> int main() { int result, i, n; printf("Input n: "); scanf("%d", &n); for(int i = 1; i <= n; i++) { result = i*i; printf("%-3d", result); } } OUTPUT: 1 4 9 16... n^2 Probably, you want this. You should scan the value of n before the loop. Otherwise, the ...
d10935
You can learn the criteria in SET DEADLOCK_PRIORITY (Transact-SQL): Which session is chosen as the deadlock victim depends on each session's deadlock priority: * *If both sessions have the same deadlock priority, the instance of SQL Server chooses the session that is less expensive to roll back as the dea...
d10936
I have managed to partly work this out. One of the problems was with the program behaving nondeterministically. This is just because (1) OpenMP performs reductions in thread-completion order, which is non-deterministic, and (2) floating-point addition is non-associative. I assumed that the reductions would be performed...
d10937
You can construct a MultiIndex object from the year and month and assign it to the data frame's index: import pandas as pd d.index = pd.MultiIndex.from_arrays([d.index.year, d.index.month]) d.index # MultiIndex(levels=[[1970, 1971], [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]], # labels=[[0, 0, 0, 0, 0, 0, 0, 0...
d10938
Jus a note, in 2016 Parse has closed (it's now open source and you run it on Heroku or whatever). There are many other "baas" such as Firebase etc. Since there seems to be some confusion, (a) your current service has no API. it is, thus, unfortunately essentially useless so your most absolutely time saving step from h...
d10939
There isn't really a relationship type in Laravel for your specific use case. The easiest thing you can do in this case is create a separate hasMany relationship for each of your post types, and then write a function that returns a combination of all the results. So you'd end up with something like this in your User cl...
d10940
Qt is, among other things, a great framework for developing applications with GUIs. The only way to know if it is appropriate is to try it out. I suggest going through this Qt tutorial, which involves creating a simple game. A: To begin with Qt is an excellent idea. Qt is already simpler. You should begin with these...
d10941
The SDR or SVR channel will always open the transmission queue for exclusive use. If the .Net client is getting an error because of this then it is asking for input rights as well as inquire. You can verify this by using WMQ Explorer to inquire on the queue and you will see that it has no problem getting queue attrib...
d10942
The most likely reason for this is because the process hasn't spun up yet. You need to hit an ASP page first before IIS spins up the DLLHOST.exe in which it runs an application if you have that application set to have high isolation (recommended for debugging purposes). Hence debugging bia attachment requires the you ...
d10943
Go with "the sum of something". I don't see it is a problem. If you really dislike it, just write your own function to do it. As you already know, it is not hard. Detail Box2D is not an architectural library. As far as I know, there is no such function. In 3D Physics and Graphics, I also faced a little inconvenience...
d10944
So I've found out that one of my entity class extends ViewModel. Removing it solved the problem. Just check your entity class. Thanks.
d10945
Have a look at SpecFlow Assist Helpers. There are a few helpful methods, you can try to use table.CreateInstance<T> method to convert row in your table to object for future use. You can also specify the custom mapping using TableAliases attribute, see Working Effectively with SpecFlow Tables article for details
d10946
You can use a two pointer approach + counting the frequencies. static int countSub(String str) { int n = (int)str.length(); // Stores the count of // subStrings int ans = 0; // Stores the frequency // of characters int []cnt = new int[26]; // Initialised both pointers // to beginn...
d10947
You can't link a Credential asset directly to Key Vault, however it should be possible to write a script that connects to Key Vault and updates the appropriate Automation Credentials from there. This could either be fired on a schedule, a webhook, or by picking up Key Vault events from the new Event Grid (presuming th...
d10948
You can format the axis using axis.POSIXct as seen below: axis.POSIXct(1,station_171$datetime, format = '%Y-%m-%d %H:%S') One should also make sure to include the xaxt='n' in the plot function to avoid double printing the x-axis labels.
d10949
Resize using JavaScript Client-Side-Processing We're using JavaScript resizing, which uses clients device processing power to resize the image, and works GREAT, saving us space and money, saving the netwrok unnecesary bandwidth, and saving the client a bunch of time and also money in most mobile cases. The original scr...
d10950
In your situation, you do not need a reset_var function, simply do: i=50 j=40 unset i j That is said, a possible reset_var function would be: reset_var() { while [ "${#}" -ge 1 ] ; do unset "${1}" shift done } A: You have an infinite loop when passing some arguments. Your reset function should look someth...
d10951
From the boost page on iterator_facade, the template arguments are: derived iterator, value_type, category, reference type, difference_type. Ergo, merely tell it that references are not references class my_iterator : public boost::iterator_facade< my_iterator, my_obj, boost::forward_traver...
d10952
From the official site title "Types of Vehicles Produced Worldwide (Details)"; proc gchart data=sashelp.cars; pie type / detail=drivetrain detail_percent=best detail_value=none detail_slice=best detail_threshold=2 legend ; run; quit; This graph uses the data set entitled CARS found in the SASHELP library. The DE...
d10953
This should work. You wouldn't want to use a group_by here, you would do that if you were trying to go from more to less, we're going the other way. You're combining the different versions with the corresponding severity. Here's how you could do that. map(.fields | (.versions[] | { id, name }) + { value: .severity.va...
d10954
To get the authentication token, you need to pass the redirect URI to the call to WL.init: WL.init({ redirect_uri: "<< INSERT REDIRECT DOMAIN HERE >>" }); Where the redirect domain must be the same as the one in your Live Connect application.
d10955
In another technology, I found it easier to have your date sent as ISO format (YYYY-MM-DD), unless you specifically need to have day, month and year received as parameters A: Fixed by changed params.orderDate = day + "/" + month + "/" + d.getFullYear(); to: params.orderDate = moment().format('MM/DD/YYYY'); Since the H...
d10956
You'll have to update the version of g++ to 4.6.3 (or later) if you want to use c++11 features. See this question and it's answers on how to do it for deb linux. Then you'll have to pass --std=c++0x to the compiler in options. You should be able to easily find them in codeblocks. what is the difference between C++ 0x ...
d10957
I've found the solution to the problem by some hit & trial. It is because when we make getJSON() call on cross domain then response should be wrapped inside a function name. This function is our callback handler for the response in the script.eg html file : <html> <head> <script type='text/javascript' src='http://...
d10958
Your code has non-standard characters in some of the white space, including right after K;
d10959
You can do it like this as well? You can change your onclick events as follows: Change onlick functions to this: onclick ="myFunction(this)" And Update your javascript function to be like the following: function myFunction(obj) { if (obj.value == "Connected") obj.value = "Connect"; else obj.val...
d10960
I have spent more than 3 hours on this nonsense. It turned out to be a straightforward problem. I hope I can help somebody with this answer. First, you must realize that you need 2 JavaScript functions. 1- A one that is executed after the submit button is pressed. In this function, always use: event.preventDefault() to...
d10961
Probably because the function is not marked as a fixture. Try after decorating the function with @pytest.fixture. For example, @pytest.fixture(scope="session") def client(): api=create_app() c = testing.TestClient(api) yield c remove_db()
d10962
The golang specification says, "float64 is the set of all IEEE-754 64-bit floating-point numbers." which is commonly known as double precision numbers, http://en.wikipedia.org/wiki/Double-precision_floating-point_format You can read all of its glory details if interested, but to answer your question, quote, "...next r...
d10963
The problem is that the HestonModelHelper expects the type of the spot and the strike to be a float. For it to work with minimal change, use: helper = ql.HestonModelHelper( p, calendar, ...
d10964
The problem was that you'd have to use .text and not .textContent for ie8, because the textContent property doesn't exist in ie. You can see in MDN that textContent is available only for ie 9+
d10965
Yes, you can. This is a "for each" loop. ch will have the value of each successive character in the string s. A: This is named Range for loop and is a new syntax introduced in C++11.
d10966
Tables for the win! fiddle <!DOCTYPE html> <html> <head> <style type="text/css"> #container { display: table; width: 100% } #left, #right { display: table-cell; width: 50%; background: #ffd } #content { display: table-cell } </style> </head> <body> ...
d10967
FYI: indeed has discontinued their API. I am posting this here because their website still lists it as active but when one tries to get a publisher id one gets redirected to an unrelated page without any explanation. After some time I called indeed and they told me it was discontinued. Hopefully this saves other peopl...
d10968
LINQtoCSV only takes a StreamReader, not a stream. Try this: using (MemoryStream mStream = new MemoryStream(System.Text.ASCIIEncoding.Default.GetBytes(data))) using (StreamReader reader = new StreamReader(mStream)) { IEnumerable<Data> datas = cc.Read<Data>(reader, inputFileDescripti...
d10969
You will need to process the Documentation of the test to see if it has a JIRA issue number, if so, then add a Tag (for example TagName) to it. When launching tests with robotframework version 4.0, you call them by passing the option --skiponfailure TagName. You will have those tests marked as SKIPPED. The parsing of D...
d10970
Solved I wasn't able to get the Nico's solution to work for me, since I still needed to somehow bind within NutriDetailsControl.xaml to MyBasketItem, and no permutation I tried seemed to work. After reading the Data Binding in Depth, I thought maybe I should forget about this whole custom control thing situation, and j...
d10971
What about Anonymous Types? Something like this: return Ok(new { Zones, userZones }); A: I think that the best way to go is to creat a list, add the object to your list, and return the list. This way is also easyer if you need to work with these object. To create a list, first we need to code a propper class: public ...
d10972
You don't feed a source URL to drawImage; it wants the image itself. This can be read from a DOM element or by constructing an Image object in code, as shown here: var canvas = document.querySelector('Canvas'); canvas.width = window.innerWidth; canvas.height = window.innerHeight; var ctx = canvas.getContext('2d...
d10973
This code section here , return snapshot.hasData ? PostListView() : Center(child: CircularProgressIndicator()); Add PostListView(posts:snapshot.data) Tell me if it works.
d10974
Not sure if this it what you want but here is code for finding the last (bottom) filled in cell in a column. Call it as lastRow = findLastRow(yoursheetname, yourcolumnname (like "F:F" or a named column) ): Option Explicit Function findLastRow(Sheetname As String, ColumnName As String) Dim lastRow As Integer Di...
d10975
This tutorial is the best for me http://www.raywenderlich.com/44640/integrating-facebook-and-parse-tutorial-part-1 A: Why third party? What's wrong with Facebooks documentation? It's perfectly clear https://developers.facebook.com/docs/ios/getting-started
d10976
I don't know how this is done in C#, but you have also tagged this question WinAPI so I can help there. In WinAPI, it can be done like so: #include <stdio.h> #include <Windows.h> #include <Psapi.h> #pragma comment(lib, "Psapi.lib") int main(void) { /* Hacky loop for proof of concept */ while(TRUE) { Sleep(100)...
d10977
Two solutions: * *You could paginate your results *You could hydrate your results into arrays You could do something like this $query = $this->cert_repository ->createQueryBuilder('p') ->select(array('p')) ->where('p.isTemplate = :isTemplate')->setParameter('isTemplate', ...
d10978
Try this: <Extension()> _ Public Function ToList(Of TItem, TList As {New, List(Of TItem)})(ByVal item As TItem) As TList Dim tList As New TList tList.Add(item) Return tList End Function Basically your return type was a generic (declared as List (of T)). The function decaration here does it so that the return typ...
d10979
If I understand correctly, the challenge is that your library needs to know how to parse ValueField (and perhaps KeyField) but the library itself does not know their types; only the caller of the library does. The way to solve this is to have the caller pass in a "prototype" instance of their message type, from which y...
d10980
You can compress XM, S3M, IT and MOD files to MO3. There is no way to convert MP3, WAV, OGG or FLAC to MO3, because the way of saving the audio is fundamentally different. It's like giving your computer a cd and asking it to write out the notes for all instruments, the lyrics and special effects. Maybe this can help yo...
d10981
I would use forkJoin in the following fashion: ngOnInit() { forkJoin([ this.habitService.fetchAllById(this.authService.userId), this.status$ = this.statusService.fetchAll() ]).subscribe(([habits, statuses]) => { this.joined = habits.map(habit => ({ ...statuses.find(t => t.habitId === habit.habitId...
d10982
<script> function myFunction($i) { alert(x); <?php $_SESSION["id"] = $i; ?> } </script> You are trying to include php code in javascript thinking you will change php global variable at client end when a click event happens. This is not the right way. Sessions are for saving session variables. You are using sessions f...
d10983
your problem is that you shouldn't use property <param name="actionName">AdminIndex</param>, here is the solution: <result name="success" type="redirectAction"> <param name="actionName">AdminIndex</param> </result> regarding to the doc Struts2 Redirect Action Result Type, you should use redirectAction instead redi...
d10984
How about %p= item.price + "&nbsp;dollars".html_safe A: This answer is for a slightly different question but I found this question searching for it... If you have a submit tag %input{ :type => "submit", :value => "&nbsp;dollars", :name => "very_contrived" } even if you throw an html_safe on the :value it will not ev...
d10985
Ok, so firstly your initialisation is completely wrong! Secondly where is your declaration for your struct instance? Thirdly you are missing several semi-colons to close off statements, next you are accessing your arrays wrong, please look at my code ad work from that. struct gridblock { bool occ; double col[3]...
d10986
HTML is not JSON, and it can not be parsed into JSONObjects. The top answer for org.json.JSONException: Value <!DOCTYPE of type java.lang.String cannot be converted to JSONObject is pretty good at explaining this further.
d10987
you can use strncmp() function from string.h strncmp(str1, str2, size_of_your_string); Here you can manually give the size of string(or the number of characters that you want to compare). strlen() may not work to get the length of your string because your strings are not terminated with the NUL character. UPDATE...
d10988
NSArray is a single-dimensioned array, but you're trying to use it as a two-dimensional array. I can't see how this would ever compile. You need to translate into Swift types immediately so you can continue programming in Swift, not go adrift in a sea of force-unwrapped Optionals. How about: if let ar = sender.dragging...
d10989
I figured out how to do it without breaking existing functionality. Unfortunately I have to add code to every Plan I have but it is quite small change any way. First define intent. object AllowAllOrigin extends unfiltered.kit.Prepend { def intent = Cycle.Intent { case _ ⇒ ResponseHeader("Access-Control-Allow-Orig...
d10990
I don't know if i got your question right, but normally, if you set up an new menu-module you can set the Menu you want to use and the Base-Item (Home) where all the Sub Items are placed. So if you want to only display the Sub-Items of home you normally should then set start-level to "1" (Since your base item is alread...
d10991
This is not possible. It is possible to copy all text from a textbox but there are no viable options to only copy selected text to clipboard. How can I click a button in VB and highlight a text box and copies conent to clipboard?
d10992
public static void main(String[] args){ if (c == 1){ //... double area1 = Integration.Areaf(lower, upper); double area2 = Integration.Areag(lower, upper); sum = area1 - area2;//sum and minus used? System.out.println("Area between the two curves = " + sum); } } Also you us...
d10993
aws-cdk has a library of testing utilities that are useful for asserting against stacks. The cdk repo uses it itself for a lot of its own unit tests. https://www.npmjs.com/package/@aws-cdk/assert This allows you to do something like // jest test('configurable retention period cannot exceed 14 days', () => { const sta...
d10994
There is no built-in way to invert image colors within the framework. Instead, because of the overhead of doing this on the phone, you should create both versions of the image at design/build time and then choose which version to display from your code by detecting Theme Visibility and Opacity. A: I must add that wha...
d10995
Regex support improved between gcc 4.8.2 and 4.9.2. For example, the regex =[A-Z]{3} was failing for me with: Regex error After upgrading to gcc 4.9.2, it works as expected. A: Update: <regex> is now implemented and released in GCC 4.9.0 Old answer: ECMAScript syntax accepts [0-9], \s, \w, etc, see ECMA-262 (15.10)...
d10996
I'd say there aren't that many places really using FxCop. We have it turned on, but most of the dev staff ignores the warnings produced. Also, Dev Management here hasn't been interested in really pushing cleaning up the warnings, in part because FxCop really dislikes the conventions (variable names, etc) that manage...
d10997
Hi you will need to store more information in state. Instead of boolean true false you should store something that can be used as ID, unique to all buttons. For example const [selected, setSelected] = useState() And then toggleText could become toggleSelected and needs to take the id of the element that was selected ...
d10998
You can use .Except() to get the difference between two sets: var difference = accessories.Except(foo); // difference is now a collection containing elements in accessories that are not in foo If you then want to add those items to foo: foo = foo.Concat(difference).ToList(); A: Use List.Except: foo.AddRange(accessor...
d10999
In a Vue CLI project, the src/assets directory normally contains files that are processed by Webpack (for minification, etc.), and static assets are stored in the public directory. So, you could move your src/assets/others to public/others, where they'll automatically be copied to dist during the build. On the other ha...
d11000
I figured it out. This is how I added it: import { Injectable } from '@angular/core'; import { Router, CanActivate, ActivatedRouteSnapshot, RouterStateSnapshot } from '@angular/router'; import { AdalService } from 'ng2-adal/dist/core'; @Injectable() export class RouteGuard implements CanActivate { constructor(priva...